All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.ec2.model.ModifyImageAttributeRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EC2 module holds the client classes that are used for communicating with Amazon EC2 Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.ModifyImageAttributeRequestMarshaller;

/**
 * 

* Contains the parameters for ModifyImageAttribute. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModifyImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest { /** *

* The name of the attribute to modify. *

*

* Valid values: description | imdsSupport | launchPermission *

*/ private String attribute; /** *

* A new description for the AMI. *

*/ private String description; /** *

* The ID of the AMI. *

*/ private String imageId; /** *

* A new launch permission for the AMI. *

*/ private LaunchPermissionModifications launchPermission; /** *

* The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. *

*/ private String operationType; /** *

* Not supported. *

*/ private com.amazonaws.internal.SdkInternalList productCodes; /** *

* The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. *

*/ private com.amazonaws.internal.SdkInternalList userGroups; /** *

* The Amazon Web Services account IDs. This parameter can be used only when the Attribute parameter is * launchPermission. *

*/ private com.amazonaws.internal.SdkInternalList userIds; /** *

* The value of the attribute being modified. This parameter can be used only when the Attribute * parameter is description or imdsSupport. *

*/ private String value; /** *

* The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. *

*/ private com.amazonaws.internal.SdkInternalList organizationArns; /** *

* The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. *

*/ private com.amazonaws.internal.SdkInternalList organizationalUnitArns; /** *

* Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI will * have HttpTokens automatically set to required so that, by default, the instance * requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit * is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide. *

* *

* Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to v2.0, * you can't undo it. The only way to “reset” your AMI is to create a new AMI from the underlying snapshot. *

*
*/ private String imdsSupport; /** * Default constructor for ModifyImageAttributeRequest object. Callers should use the setter or fluent setter * (with...) methods to initialize the object after creating it. */ public ModifyImageAttributeRequest() { } /** * Constructs a new ModifyImageAttributeRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param imageId * The ID of the AMI. * @param attribute * The name of the attribute to modify.

*

* Valid values: description | imdsSupport | launchPermission */ public ModifyImageAttributeRequest(String imageId, String attribute) { setImageId(imageId); setAttribute(attribute); } /** *

* The name of the attribute to modify. *

*

* Valid values: description | imdsSupport | launchPermission *

* * @param attribute * The name of the attribute to modify.

*

* Valid values: description | imdsSupport | launchPermission */ public void setAttribute(String attribute) { this.attribute = attribute; } /** *

* The name of the attribute to modify. *

*

* Valid values: description | imdsSupport | launchPermission *

* * @return The name of the attribute to modify.

*

* Valid values: description | imdsSupport | launchPermission */ public String getAttribute() { return this.attribute; } /** *

* The name of the attribute to modify. *

*

* Valid values: description | imdsSupport | launchPermission *

* * @param attribute * The name of the attribute to modify.

*

* Valid values: description | imdsSupport | launchPermission * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withAttribute(String attribute) { setAttribute(attribute); return this; } /** *

* A new description for the AMI. *

* * @param description * A new description for the AMI. */ public void setDescription(String description) { this.description = description; } /** *

* A new description for the AMI. *

* * @return A new description for the AMI. */ public String getDescription() { return this.description; } /** *

* A new description for the AMI. *

* * @param description * A new description for the AMI. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withDescription(String description) { setDescription(description); return this; } /** *

* The ID of the AMI. *

* * @param imageId * The ID of the AMI. */ public void setImageId(String imageId) { this.imageId = imageId; } /** *

* The ID of the AMI. *

* * @return The ID of the AMI. */ public String getImageId() { return this.imageId; } /** *

* The ID of the AMI. *

* * @param imageId * The ID of the AMI. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withImageId(String imageId) { setImageId(imageId); return this; } /** *

* A new launch permission for the AMI. *

* * @param launchPermission * A new launch permission for the AMI. */ public void setLaunchPermission(LaunchPermissionModifications launchPermission) { this.launchPermission = launchPermission; } /** *

* A new launch permission for the AMI. *

* * @return A new launch permission for the AMI. */ public LaunchPermissionModifications getLaunchPermission() { return this.launchPermission; } /** *

* A new launch permission for the AMI. *

* * @param launchPermission * A new launch permission for the AMI. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withLaunchPermission(LaunchPermissionModifications launchPermission) { setLaunchPermission(launchPermission); return this; } /** *

* The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @param operationType * The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. * @see OperationType */ public void setOperationType(String operationType) { this.operationType = operationType; } /** *

* The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @return The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. * @see OperationType */ public String getOperationType() { return this.operationType; } /** *

* The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @param operationType * The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. * @return Returns a reference to this object so that method calls can be chained together. * @see OperationType */ public ModifyImageAttributeRequest withOperationType(String operationType) { setOperationType(operationType); return this; } /** *

* The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @param operationType * The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. * @see OperationType */ public void setOperationType(OperationType operationType) { withOperationType(operationType); } /** *

* The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @param operationType * The operation type. This parameter can be used only when the Attribute parameter is * launchPermission. * @return Returns a reference to this object so that method calls can be chained together. * @see OperationType */ public ModifyImageAttributeRequest withOperationType(OperationType operationType) { this.operationType = operationType.toString(); return this; } /** *

* Not supported. *

* * @return Not supported. */ public java.util.List getProductCodes() { if (productCodes == null) { productCodes = new com.amazonaws.internal.SdkInternalList(); } return productCodes; } /** *

* Not supported. *

* * @param productCodes * Not supported. */ public void setProductCodes(java.util.Collection productCodes) { if (productCodes == null) { this.productCodes = null; return; } this.productCodes = new com.amazonaws.internal.SdkInternalList(productCodes); } /** *

* Not supported. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setProductCodes(java.util.Collection)} or {@link #withProductCodes(java.util.Collection)} if you want to * override the existing values. *

* * @param productCodes * Not supported. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withProductCodes(String... productCodes) { if (this.productCodes == null) { setProductCodes(new com.amazonaws.internal.SdkInternalList(productCodes.length)); } for (String ele : productCodes) { this.productCodes.add(ele); } return this; } /** *

* Not supported. *

* * @param productCodes * Not supported. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withProductCodes(java.util.Collection productCodes) { setProductCodes(productCodes); return this; } /** *

* The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @return The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. */ public java.util.List getUserGroups() { if (userGroups == null) { userGroups = new com.amazonaws.internal.SdkInternalList(); } return userGroups; } /** *

* The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @param userGroups * The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. */ public void setUserGroups(java.util.Collection userGroups) { if (userGroups == null) { this.userGroups = null; return; } this.userGroups = new com.amazonaws.internal.SdkInternalList(userGroups); } /** *

* The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserGroups(java.util.Collection)} or {@link #withUserGroups(java.util.Collection)} if you want to * override the existing values. *

* * @param userGroups * The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withUserGroups(String... userGroups) { if (this.userGroups == null) { setUserGroups(new com.amazonaws.internal.SdkInternalList(userGroups.length)); } for (String ele : userGroups) { this.userGroups.add(ele); } return this; } /** *

* The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @param userGroups * The user groups. This parameter can be used only when the Attribute parameter is * launchPermission. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withUserGroups(java.util.Collection userGroups) { setUserGroups(userGroups); return this; } /** *

* The Amazon Web Services account IDs. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @return The Amazon Web Services account IDs. This parameter can be used only when the Attribute * parameter is launchPermission. */ public java.util.List getUserIds() { if (userIds == null) { userIds = new com.amazonaws.internal.SdkInternalList(); } return userIds; } /** *

* The Amazon Web Services account IDs. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @param userIds * The Amazon Web Services account IDs. This parameter can be used only when the Attribute * parameter is launchPermission. */ public void setUserIds(java.util.Collection userIds) { if (userIds == null) { this.userIds = null; return; } this.userIds = new com.amazonaws.internal.SdkInternalList(userIds); } /** *

* The Amazon Web Services account IDs. This parameter can be used only when the Attribute parameter is * launchPermission. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserIds(java.util.Collection)} or {@link #withUserIds(java.util.Collection)} if you want to override * the existing values. *

* * @param userIds * The Amazon Web Services account IDs. This parameter can be used only when the Attribute * parameter is launchPermission. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withUserIds(String... userIds) { if (this.userIds == null) { setUserIds(new com.amazonaws.internal.SdkInternalList(userIds.length)); } for (String ele : userIds) { this.userIds.add(ele); } return this; } /** *

* The Amazon Web Services account IDs. This parameter can be used only when the Attribute parameter is * launchPermission. *

* * @param userIds * The Amazon Web Services account IDs. This parameter can be used only when the Attribute * parameter is launchPermission. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withUserIds(java.util.Collection userIds) { setUserIds(userIds); return this; } /** *

* The value of the attribute being modified. This parameter can be used only when the Attribute * parameter is description or imdsSupport. *

* * @param value * The value of the attribute being modified. This parameter can be used only when the Attribute * parameter is description or imdsSupport. */ public void setValue(String value) { this.value = value; } /** *

* The value of the attribute being modified. This parameter can be used only when the Attribute * parameter is description or imdsSupport. *

* * @return The value of the attribute being modified. This parameter can be used only when the * Attribute parameter is description or imdsSupport. */ public String getValue() { return this.value; } /** *

* The value of the attribute being modified. This parameter can be used only when the Attribute * parameter is description or imdsSupport. *

* * @param value * The value of the attribute being modified. This parameter can be used only when the Attribute * parameter is description or imdsSupport. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withValue(String value) { setValue(value); return this; } /** *

* The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. *

* * @return The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. */ public java.util.List getOrganizationArns() { if (organizationArns == null) { organizationArns = new com.amazonaws.internal.SdkInternalList(); } return organizationArns; } /** *

* The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. *

* * @param organizationArns * The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. */ public void setOrganizationArns(java.util.Collection organizationArns) { if (organizationArns == null) { this.organizationArns = null; return; } this.organizationArns = new com.amazonaws.internal.SdkInternalList(organizationArns); } /** *

* The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOrganizationArns(java.util.Collection)} or {@link #withOrganizationArns(java.util.Collection)} if you * want to override the existing values. *

* * @param organizationArns * The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withOrganizationArns(String... organizationArns) { if (this.organizationArns == null) { setOrganizationArns(new com.amazonaws.internal.SdkInternalList(organizationArns.length)); } for (String ele : organizationArns) { this.organizationArns.add(ele); } return this; } /** *

* The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. *

* * @param organizationArns * The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the * Attribute parameter is launchPermission. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withOrganizationArns(java.util.Collection organizationArns) { setOrganizationArns(organizationArns); return this; } /** *

* The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. *

* * @return The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. */ public java.util.List getOrganizationalUnitArns() { if (organizationalUnitArns == null) { organizationalUnitArns = new com.amazonaws.internal.SdkInternalList(); } return organizationalUnitArns; } /** *

* The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. *

* * @param organizationalUnitArns * The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. */ public void setOrganizationalUnitArns(java.util.Collection organizationalUnitArns) { if (organizationalUnitArns == null) { this.organizationalUnitArns = null; return; } this.organizationalUnitArns = new com.amazonaws.internal.SdkInternalList(organizationalUnitArns); } /** *

* The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOrganizationalUnitArns(java.util.Collection)} or * {@link #withOrganizationalUnitArns(java.util.Collection)} if you want to override the existing values. *

* * @param organizationalUnitArns * The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withOrganizationalUnitArns(String... organizationalUnitArns) { if (this.organizationalUnitArns == null) { setOrganizationalUnitArns(new com.amazonaws.internal.SdkInternalList(organizationalUnitArns.length)); } for (String ele : organizationalUnitArns) { this.organizationalUnitArns.add(ele); } return this; } /** *

* The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. *

* * @param organizationalUnitArns * The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the * Attribute parameter is launchPermission. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withOrganizationalUnitArns(java.util.Collection organizationalUnitArns) { setOrganizationalUnitArns(organizationalUnitArns); return this; } /** *

* Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI will * have HttpTokens automatically set to required so that, by default, the instance * requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit * is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide. *

* *

* Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to v2.0, * you can't undo it. The only way to “reset” your AMI is to create a new AMI from the underlying snapshot. *

*
* * @param imdsSupport * Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI * will have HttpTokens automatically set to required so that, by default, the * instance requires that IMDSv2 is used when requesting instance metadata. In addition, * HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

*

* Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to * v2.0, you can't undo it. The only way to “reset” your AMI is to create a new AMI from the * underlying snapshot. *

*/ public void setImdsSupport(String imdsSupport) { this.imdsSupport = imdsSupport; } /** *

* Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI will * have HttpTokens automatically set to required so that, by default, the instance * requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit * is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide. *

* *

* Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to v2.0, * you can't undo it. The only way to “reset” your AMI is to create a new AMI from the underlying snapshot. *

*
* * @return Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this * AMI will have HttpTokens automatically set to required so that, by default, the * instance requires that IMDSv2 is used when requesting instance metadata. In addition, * HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

*

* Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to * v2.0, you can't undo it. The only way to “reset” your AMI is to create a new AMI from the * underlying snapshot. *

*/ public String getImdsSupport() { return this.imdsSupport; } /** *

* Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI will * have HttpTokens automatically set to required so that, by default, the instance * requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit * is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide. *

* *

* Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to v2.0, * you can't undo it. The only way to “reset” your AMI is to create a new AMI from the underlying snapshot. *

*
* * @param imdsSupport * Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI * will have HttpTokens automatically set to required so that, by default, the * instance requires that IMDSv2 is used when requesting instance metadata. In addition, * HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

*

* Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to * v2.0, you can't undo it. The only way to “reset” your AMI is to create a new AMI from the * underlying snapshot. *

* @return Returns a reference to this object so that method calls can be chained together. */ public ModifyImageAttributeRequest withImdsSupport(String imdsSupport) { setImdsSupport(imdsSupport); return this; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request getDryRunRequest() { Request request = new ModifyImageAttributeRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAttribute() != null) sb.append("Attribute: ").append(getAttribute()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getImageId() != null) sb.append("ImageId: ").append(getImageId()).append(","); if (getLaunchPermission() != null) sb.append("LaunchPermission: ").append(getLaunchPermission()).append(","); if (getOperationType() != null) sb.append("OperationType: ").append(getOperationType()).append(","); if (getProductCodes() != null) sb.append("ProductCodes: ").append(getProductCodes()).append(","); if (getUserGroups() != null) sb.append("UserGroups: ").append(getUserGroups()).append(","); if (getUserIds() != null) sb.append("UserIds: ").append(getUserIds()).append(","); if (getValue() != null) sb.append("Value: ").append(getValue()).append(","); if (getOrganizationArns() != null) sb.append("OrganizationArns: ").append(getOrganizationArns()).append(","); if (getOrganizationalUnitArns() != null) sb.append("OrganizationalUnitArns: ").append(getOrganizationalUnitArns()).append(","); if (getImdsSupport() != null) sb.append("ImdsSupport: ").append(getImdsSupport()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyImageAttributeRequest == false) return false; ModifyImageAttributeRequest other = (ModifyImageAttributeRequest) obj; if (other.getAttribute() == null ^ this.getAttribute() == null) return false; if (other.getAttribute() != null && other.getAttribute().equals(this.getAttribute()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getLaunchPermission() == null ^ this.getLaunchPermission() == null) return false; if (other.getLaunchPermission() != null && other.getLaunchPermission().equals(this.getLaunchPermission()) == false) return false; if (other.getOperationType() == null ^ this.getOperationType() == null) return false; if (other.getOperationType() != null && other.getOperationType().equals(this.getOperationType()) == false) return false; if (other.getProductCodes() == null ^ this.getProductCodes() == null) return false; if (other.getProductCodes() != null && other.getProductCodes().equals(this.getProductCodes()) == false) return false; if (other.getUserGroups() == null ^ this.getUserGroups() == null) return false; if (other.getUserGroups() != null && other.getUserGroups().equals(this.getUserGroups()) == false) return false; if (other.getUserIds() == null ^ this.getUserIds() == null) return false; if (other.getUserIds() != null && other.getUserIds().equals(this.getUserIds()) == false) return false; if (other.getValue() == null ^ this.getValue() == null) return false; if (other.getValue() != null && other.getValue().equals(this.getValue()) == false) return false; if (other.getOrganizationArns() == null ^ this.getOrganizationArns() == null) return false; if (other.getOrganizationArns() != null && other.getOrganizationArns().equals(this.getOrganizationArns()) == false) return false; if (other.getOrganizationalUnitArns() == null ^ this.getOrganizationalUnitArns() == null) return false; if (other.getOrganizationalUnitArns() != null && other.getOrganizationalUnitArns().equals(this.getOrganizationalUnitArns()) == false) return false; if (other.getImdsSupport() == null ^ this.getImdsSupport() == null) return false; if (other.getImdsSupport() != null && other.getImdsSupport().equals(this.getImdsSupport()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttribute() == null) ? 0 : getAttribute().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getLaunchPermission() == null) ? 0 : getLaunchPermission().hashCode()); hashCode = prime * hashCode + ((getOperationType() == null) ? 0 : getOperationType().hashCode()); hashCode = prime * hashCode + ((getProductCodes() == null) ? 0 : getProductCodes().hashCode()); hashCode = prime * hashCode + ((getUserGroups() == null) ? 0 : getUserGroups().hashCode()); hashCode = prime * hashCode + ((getUserIds() == null) ? 0 : getUserIds().hashCode()); hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); hashCode = prime * hashCode + ((getOrganizationArns() == null) ? 0 : getOrganizationArns().hashCode()); hashCode = prime * hashCode + ((getOrganizationalUnitArns() == null) ? 0 : getOrganizationalUnitArns().hashCode()); hashCode = prime * hashCode + ((getImdsSupport() == null) ? 0 : getImdsSupport().hashCode()); return hashCode; } @Override public ModifyImageAttributeRequest clone() { return (ModifyImageAttributeRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy