CreateSnapshotInput
import "github.com/aws/aws-sdk-go/service/elasticache"
type CreateSnapshotInput struct { CacheClusterId *string `type:"string"` ReplicationGroupId *string `type:"string"` SnapshotName *string `type:"string" required:"true"` }
Represents the input of a CreateSnapshot operation.
- CacheClusterId
-
Type:
*string
The identifier of an existing cluster. The snapshot is created from this cluster.
- ReplicationGroupId
-
Type:
*string
The identifier of an existing replication group. The snapshot is created from this replication group.
- SnapshotName
-
Type:
*string
A name for the snapshot being created.
SnapshotName is a required field
Method
GoString
func (s CreateSnapshotInput) GoString() string
GoString returns the string representation
SetCacheClusterId
func (s *CreateSnapshotInput) SetCacheClusterId(v string) *CreateSnapshotInput
SetCacheClusterId sets the CacheClusterId field's value.
SetReplicationGroupId
func (s *CreateSnapshotInput) SetReplicationGroupId(v string) *CreateSnapshotInput
SetReplicationGroupId sets the ReplicationGroupId field's value.
SetSnapshotName
func (s *CreateSnapshotInput) SetSnapshotName(v string) *CreateSnapshotInput
SetSnapshotName sets the SnapshotName field's value.
String
func (s CreateSnapshotInput) String() string
String returns the string representation
Validate
func (s *CreateSnapshotInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.