/* * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.ec2.model; import java.io.Serializable; /** *
* Describes an image attribute. *
*/ public class ImageAttribute implements Serializable { /** * The ID of the AMI. */ private String imageId; /** * One or more launch permissions. */ private com.amazonaws.internal.ListWithAutoConstructFlag
* Returns a reference to this object so that method calls can be chained together.
*
* @param imageId The ID of the AMI.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withImageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* One or more launch permissions.
*
* @return One or more launch permissions.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param launchPermissions One or more launch permissions.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withLaunchPermissions(LaunchPermission... launchPermissions) {
if (getLaunchPermissions() == null) setLaunchPermissions(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param launchPermissions One or more launch permissions.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withLaunchPermissions(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param productCodes One or more product codes.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withProductCodes(ProductCode... productCodes) {
if (getProductCodes() == null) setProductCodes(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param productCodes One or more product codes.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withProductCodes(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param kernelId The kernel ID.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withKernelId(String kernelId) {
this.kernelId = kernelId;
return this;
}
/**
* The RAM disk ID.
*
* @return The RAM disk ID.
*/
public String getRamdiskId() {
return ramdiskId;
}
/**
* The RAM disk ID.
*
* @param ramdiskId The RAM disk ID.
*/
public void setRamdiskId(String ramdiskId) {
this.ramdiskId = ramdiskId;
}
/**
* The RAM disk ID.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param ramdiskId The RAM disk ID.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withRamdiskId(String ramdiskId) {
this.ramdiskId = ramdiskId;
return this;
}
/**
* A description for the AMI.
*
* @return A description for the AMI.
*/
public String getDescription() {
return description;
}
/**
* A description for the AMI.
*
* @param description A description for the AMI.
*/
public void setDescription(String description) {
this.description = description;
}
/**
* A description for the AMI.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param description A description for the AMI.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withDescription(String description) {
this.description = description;
return this;
}
/**
* The value to use for a resource attribute.
*
* @return The value to use for a resource attribute.
*/
public String getSriovNetSupport() {
return sriovNetSupport;
}
/**
* The value to use for a resource attribute.
*
* @param sriovNetSupport The value to use for a resource attribute.
*/
public void setSriovNetSupport(String sriovNetSupport) {
this.sriovNetSupport = sriovNetSupport;
}
/**
* The value to use for a resource attribute.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param sriovNetSupport The value to use for a resource attribute.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withSriovNetSupport(String sriovNetSupport) {
this.sriovNetSupport = sriovNetSupport;
return this;
}
/**
* One or more block device mapping entries.
*
* @return One or more block device mapping entries.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param blockDeviceMappings One or more block device mapping entries.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings) {
if (getBlockDeviceMappings() == null) setBlockDeviceMappings(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param blockDeviceMappings One or more block device mapping entries.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ImageAttribute withBlockDeviceMappings(java.util.Collection