gpg::SnapshotMetadataChange::Builder

#include <snapshot_metadata_change_builder.h>

Builds one or more SnapshotMetadataChange objects.

Summary

Constructors and Destructors

Builder()
Builder(std::shared_ptr< SnapshotMetadataChangeImpl > impl)
Constructs a Builder from a shared_ptr to BuilderImpl.
Builder(const Builder & copy_from)
Creates a copy of an existing Builder.
Builder(Builder && move_from)
Moves an existing Builder.

Public functions

Create() const
SetCoverImageFromPngData(std::vector< uint8_t > png_data)
The raw bytes of the encoded png cover image of the snapshot metadata change.
SetDescription(const std::string & description)
Sets the concise description of the snapshot metadata_change.
SetPlayedTime(gpg::Duration played_time)
Sets the played time of the snapshot metadata_change.
SetProgressValue(int64_t progress_value)
Sets the progress value of the snapshot metadata_change.
operator=(const Builder & copy_from)
Assigns this Builder by copying from another one.
operator=(Builder && move_from)
Assigns this Builder by moving another one into it.

Public functions

Builder

 Builder()

Builder

 Builder(
  std::shared_ptr< SnapshotMetadataChangeImpl > impl
)

Constructs a Builder from a shared_ptr to BuilderImpl.

Intended for internal use by the API.

Builder

 Builder(
  const Builder & copy_from
)

Creates a copy of an existing Builder.

Builder

 Builder(
  Builder && move_from
)

Moves an existing Builder.

Create

SnapshotMetadataChange Create() const 

SetCoverImageFromPngData

Builder & SetCoverImageFromPngData(
  std::vector< uint8_t > png_data
)

The raw bytes of the encoded png cover image of the snapshot metadata change.

Cover image must be less than 800 kb. Image must be set every commit or it will be cleared.

SetDescription

Builder & SetDescription(
  const std::string & description
)

Sets the concise description of the snapshot metadata_change.

SetPlayedTime

Builder & SetPlayedTime(
  gpg::Duration played_time
)

Sets the played time of the snapshot metadata_change.

SetProgressValue

Builder & SetProgressValue(
  int64_t progress_value
)

Sets the progress value of the snapshot metadata_change.

operator=

Builder & operator=(
  const Builder & copy_from
)

Assigns this Builder by copying from another one.

operator=

Builder & operator=(
  Builder && move_from
)

Assigns this Builder by moving another one into it.