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

com.amazonaws.services.iot.model.UpdateMitigationActionRequest Maven / Gradle / Ivy

/*
 * Copyright 2015-2020 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.iot.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The friendly name for the mitigation action. You can't change the name by using * UpdateMitigationAction. Instead, you must delete and re-create the mitigation action with the new * name. *

*/ private String actionName; /** *

* The ARN of the IAM role that is used to apply the mitigation action. *

*/ private String roleArn; /** *

* Defines the type of action and the parameters for that action. *

*/ private MitigationActionParams actionParams; /** *

* The friendly name for the mitigation action. You can't change the name by using * UpdateMitigationAction. Instead, you must delete and re-create the mitigation action with the new * name. *

* * @param actionName * The friendly name for the mitigation action. You can't change the name by using * UpdateMitigationAction. Instead, you must delete and re-create the mitigation action with the * new name. */ public void setActionName(String actionName) { this.actionName = actionName; } /** *

* The friendly name for the mitigation action. You can't change the name by using * UpdateMitigationAction. Instead, you must delete and re-create the mitigation action with the new * name. *

* * @return The friendly name for the mitigation action. You can't change the name by using * UpdateMitigationAction. Instead, you must delete and re-create the mitigation action with * the new name. */ public String getActionName() { return this.actionName; } /** *

* The friendly name for the mitigation action. You can't change the name by using * UpdateMitigationAction. Instead, you must delete and re-create the mitigation action with the new * name. *

* * @param actionName * The friendly name for the mitigation action. You can't change the name by using * UpdateMitigationAction. Instead, you must delete and re-create the mitigation action with the * new name. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMitigationActionRequest withActionName(String actionName) { setActionName(actionName); return this; } /** *

* The ARN of the IAM role that is used to apply the mitigation action. *

* * @param roleArn * The ARN of the IAM role that is used to apply the mitigation action. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The ARN of the IAM role that is used to apply the mitigation action. *

* * @return The ARN of the IAM role that is used to apply the mitigation action. */ public String getRoleArn() { return this.roleArn; } /** *

* The ARN of the IAM role that is used to apply the mitigation action. *

* * @param roleArn * The ARN of the IAM role that is used to apply the mitigation action. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMitigationActionRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* Defines the type of action and the parameters for that action. *

* * @param actionParams * Defines the type of action and the parameters for that action. */ public void setActionParams(MitigationActionParams actionParams) { this.actionParams = actionParams; } /** *

* Defines the type of action and the parameters for that action. *

* * @return Defines the type of action and the parameters for that action. */ public MitigationActionParams getActionParams() { return this.actionParams; } /** *

* Defines the type of action and the parameters for that action. *

* * @param actionParams * Defines the type of action and the parameters for that action. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMitigationActionRequest withActionParams(MitigationActionParams actionParams) { setActionParams(actionParams); return this; } /** * 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 (getActionName() != null) sb.append("ActionName: ").append(getActionName()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getActionParams() != null) sb.append("ActionParams: ").append(getActionParams()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateMitigationActionRequest == false) return false; UpdateMitigationActionRequest other = (UpdateMitigationActionRequest) obj; if (other.getActionName() == null ^ this.getActionName() == null) return false; if (other.getActionName() != null && other.getActionName().equals(this.getActionName()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getActionParams() == null ^ this.getActionParams() == null) return false; if (other.getActionParams() != null && other.getActionParams().equals(this.getActionParams()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActionName() == null) ? 0 : getActionName().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getActionParams() == null) ? 0 : getActionParams().hashCode()); return hashCode; } @Override public UpdateMitigationActionRequest clone() { return (UpdateMitigationActionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy