@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmiDistributionConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Define and configure the output AMIs of the pipeline.
Constructor and Description |
---|
AmiDistributionConfiguration() |
Modifier and Type | Method and Description |
---|---|
AmiDistributionConfiguration |
addAmiTagsEntry(String key,
String value)
Add a single AmiTags entry
|
AmiDistributionConfiguration |
clearAmiTagsEntries()
Removes all the entries added into AmiTags.
|
AmiDistributionConfiguration |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAmiTags()
The tags to apply to AMIs distributed to this Region.
|
String |
getDescription()
The description of the AMI distribution configuration.
|
String |
getKmsKeyId()
The KMS key identifier used to encrypt the distributed image.
|
LaunchPermissionConfiguration |
getLaunchPermission()
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch
instances.
|
String |
getName()
The name of the output AMI.
|
List<String> |
getTargetAccountIds()
The ID of an account to which you want to distribute an image.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmiTags(Map<String,String> amiTags)
The tags to apply to AMIs distributed to this Region.
|
void |
setDescription(String description)
The description of the AMI distribution configuration.
|
void |
setKmsKeyId(String kmsKeyId)
The KMS key identifier used to encrypt the distributed image.
|
void |
setLaunchPermission(LaunchPermissionConfiguration launchPermission)
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch
instances.
|
void |
setName(String name)
The name of the output AMI.
|
void |
setTargetAccountIds(Collection<String> targetAccountIds)
The ID of an account to which you want to distribute an image.
|
String |
toString()
Returns a string representation of this object.
|
AmiDistributionConfiguration |
withAmiTags(Map<String,String> amiTags)
The tags to apply to AMIs distributed to this Region.
|
AmiDistributionConfiguration |
withDescription(String description)
The description of the AMI distribution configuration.
|
AmiDistributionConfiguration |
withKmsKeyId(String kmsKeyId)
The KMS key identifier used to encrypt the distributed image.
|
AmiDistributionConfiguration |
withLaunchPermission(LaunchPermissionConfiguration launchPermission)
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch
instances.
|
AmiDistributionConfiguration |
withName(String name)
The name of the output AMI.
|
AmiDistributionConfiguration |
withTargetAccountIds(Collection<String> targetAccountIds)
The ID of an account to which you want to distribute an image.
|
AmiDistributionConfiguration |
withTargetAccountIds(String... targetAccountIds)
The ID of an account to which you want to distribute an image.
|
public void setName(String name)
The name of the output AMI.
name
- The name of the output AMI.public String getName()
The name of the output AMI.
public AmiDistributionConfiguration withName(String name)
The name of the output AMI.
name
- The name of the output AMI.public void setDescription(String description)
The description of the AMI distribution configuration. Minimum and maximum length are in characters.
description
- The description of the AMI distribution configuration. Minimum and maximum length are in characters.public String getDescription()
The description of the AMI distribution configuration. Minimum and maximum length are in characters.
public AmiDistributionConfiguration withDescription(String description)
The description of the AMI distribution configuration. Minimum and maximum length are in characters.
description
- The description of the AMI distribution configuration. Minimum and maximum length are in characters.public List<String> getTargetAccountIds()
The ID of an account to which you want to distribute an image.
public void setTargetAccountIds(Collection<String> targetAccountIds)
The ID of an account to which you want to distribute an image.
targetAccountIds
- The ID of an account to which you want to distribute an image.public AmiDistributionConfiguration withTargetAccountIds(String... targetAccountIds)
The ID of an account to which you want to distribute an image.
NOTE: This method appends the values to the existing list (if any). Use
setTargetAccountIds(java.util.Collection)
or withTargetAccountIds(java.util.Collection)
if you
want to override the existing values.
targetAccountIds
- The ID of an account to which you want to distribute an image.public AmiDistributionConfiguration withTargetAccountIds(Collection<String> targetAccountIds)
The ID of an account to which you want to distribute an image.
targetAccountIds
- The ID of an account to which you want to distribute an image.public Map<String,String> getAmiTags()
The tags to apply to AMIs distributed to this Region.
public void setAmiTags(Map<String,String> amiTags)
The tags to apply to AMIs distributed to this Region.
amiTags
- The tags to apply to AMIs distributed to this Region.public AmiDistributionConfiguration withAmiTags(Map<String,String> amiTags)
The tags to apply to AMIs distributed to this Region.
amiTags
- The tags to apply to AMIs distributed to this Region.public AmiDistributionConfiguration addAmiTagsEntry(String key, String value)
public AmiDistributionConfiguration clearAmiTagsEntries()
public void setKmsKeyId(String kmsKeyId)
The KMS key identifier used to encrypt the distributed image.
kmsKeyId
- The KMS key identifier used to encrypt the distributed image.public String getKmsKeyId()
The KMS key identifier used to encrypt the distributed image.
public AmiDistributionConfiguration withKmsKeyId(String kmsKeyId)
The KMS key identifier used to encrypt the distributed image.
kmsKeyId
- The KMS key identifier used to encrypt the distributed image.public void setLaunchPermission(LaunchPermissionConfiguration launchPermission)
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
launchPermission
- Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch
instances.public LaunchPermissionConfiguration getLaunchPermission()
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
public AmiDistributionConfiguration withLaunchPermission(LaunchPermissionConfiguration launchPermission)
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
launchPermission
- Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch
instances.public String toString()
toString
in class Object
Object.toString()
public AmiDistributionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.