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

com.amazonaws.services.config.model.ConfigurationRecorder Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.11.9
Show newest version
/*
 * Copyright 2010-2016 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.config.model;

import java.io.Serializable;

/**
 * 

* An object that represents the recording of configuration changes of an AWS * resource. *

*/ public class ConfigurationRecorder implements Serializable, Cloneable { /** *

* The name of the recorder. By default, AWS Config automatically assigns * the name "default" when creating the configuration recorder. * You cannot change the assigned name. *

*/ private String name; /** *

* Amazon Resource Name (ARN) of the IAM role used to describe the AWS * resources associated with the account. *

*/ private String roleARN; /** *

* Specifies the types of AWS resource for which AWS Config records * configuration changes. *

*/ private RecordingGroup recordingGroup; /** *

* The name of the recorder. By default, AWS Config automatically assigns * the name "default" when creating the configuration recorder. * You cannot change the assigned name. *

* * @param name * The name of the recorder. By default, AWS Config automatically * assigns the name "default" when creating the * configuration recorder. You cannot change the assigned name. */ public void setName(String name) { this.name = name; } /** *

* The name of the recorder. By default, AWS Config automatically assigns * the name "default" when creating the configuration recorder. * You cannot change the assigned name. *

* * @return The name of the recorder. By default, AWS Config automatically * assigns the name "default" when creating the * configuration recorder. You cannot change the assigned name. */ public String getName() { return this.name; } /** *

* The name of the recorder. By default, AWS Config automatically assigns * the name "default" when creating the configuration recorder. * You cannot change the assigned name. *

* * @param name * The name of the recorder. By default, AWS Config automatically * assigns the name "default" when creating the * configuration recorder. You cannot change the assigned name. * @return Returns a reference to this object so that method calls can be * chained together. */ public ConfigurationRecorder withName(String name) { setName(name); return this; } /** *

* Amazon Resource Name (ARN) of the IAM role used to describe the AWS * resources associated with the account. *

* * @param roleARN * Amazon Resource Name (ARN) of the IAM role used to describe the * AWS resources associated with the account. */ public void setRoleARN(String roleARN) { this.roleARN = roleARN; } /** *

* Amazon Resource Name (ARN) of the IAM role used to describe the AWS * resources associated with the account. *

* * @return Amazon Resource Name (ARN) of the IAM role used to describe the * AWS resources associated with the account. */ public String getRoleARN() { return this.roleARN; } /** *

* Amazon Resource Name (ARN) of the IAM role used to describe the AWS * resources associated with the account. *

* * @param roleARN * Amazon Resource Name (ARN) of the IAM role used to describe the * AWS resources associated with the account. * @return Returns a reference to this object so that method calls can be * chained together. */ public ConfigurationRecorder withRoleARN(String roleARN) { setRoleARN(roleARN); return this; } /** *

* Specifies the types of AWS resource for which AWS Config records * configuration changes. *

* * @param recordingGroup * Specifies the types of AWS resource for which AWS Config records * configuration changes. */ public void setRecordingGroup(RecordingGroup recordingGroup) { this.recordingGroup = recordingGroup; } /** *

* Specifies the types of AWS resource for which AWS Config records * configuration changes. *

* * @return Specifies the types of AWS resource for which AWS Config records * configuration changes. */ public RecordingGroup getRecordingGroup() { return this.recordingGroup; } /** *

* Specifies the types of AWS resource for which AWS Config records * configuration changes. *

* * @param recordingGroup * Specifies the types of AWS resource for which AWS Config records * configuration changes. * @return Returns a reference to this object so that method calls can be * chained together. */ public ConfigurationRecorder withRecordingGroup( RecordingGroup recordingGroup) { setRecordingGroup(recordingGroup); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: " + getName() + ","); if (getRoleARN() != null) sb.append("RoleARN: " + getRoleARN() + ","); if (getRecordingGroup() != null) sb.append("RecordingGroup: " + getRecordingGroup()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ConfigurationRecorder == false) return false; ConfigurationRecorder other = (ConfigurationRecorder) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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.getRecordingGroup() == null ^ this.getRecordingGroup() == null) return false; if (other.getRecordingGroup() != null && other.getRecordingGroup().equals(this.getRecordingGroup()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode()); hashCode = prime * hashCode + ((getRecordingGroup() == null) ? 0 : getRecordingGroup() .hashCode()); return hashCode; } @Override public ConfigurationRecorder clone() { try { return (ConfigurationRecorder) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy