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

com.amazonaws.services.kinesisanalytics.model.CloudWatchLoggingOptionUpdate Maven / Gradle / Ivy

Go to download

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

The 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.kinesisanalytics.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes CloudWatch logging option updates. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CloudWatchLoggingOptionUpdate implements Serializable, Cloneable, StructuredPojo { /** *

* ID of the CloudWatch logging option to update *

*/ private String cloudWatchLoggingOptionId; /** *

* ARN of the CloudWatch log to receive application messages. *

*/ private String logStreamARNUpdate; /** *

* IAM ARN of the role to use to send application messages. Note: To write application messages to CloudWatch, the * IAM role used must have the PutLogEvents policy action enabled. *

*/ private String roleARNUpdate; /** *

* ID of the CloudWatch logging option to update *

* * @param cloudWatchLoggingOptionId * ID of the CloudWatch logging option to update */ public void setCloudWatchLoggingOptionId(String cloudWatchLoggingOptionId) { this.cloudWatchLoggingOptionId = cloudWatchLoggingOptionId; } /** *

* ID of the CloudWatch logging option to update *

* * @return ID of the CloudWatch logging option to update */ public String getCloudWatchLoggingOptionId() { return this.cloudWatchLoggingOptionId; } /** *

* ID of the CloudWatch logging option to update *

* * @param cloudWatchLoggingOptionId * ID of the CloudWatch logging option to update * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchLoggingOptionUpdate withCloudWatchLoggingOptionId(String cloudWatchLoggingOptionId) { setCloudWatchLoggingOptionId(cloudWatchLoggingOptionId); return this; } /** *

* ARN of the CloudWatch log to receive application messages. *

* * @param logStreamARNUpdate * ARN of the CloudWatch log to receive application messages. */ public void setLogStreamARNUpdate(String logStreamARNUpdate) { this.logStreamARNUpdate = logStreamARNUpdate; } /** *

* ARN of the CloudWatch log to receive application messages. *

* * @return ARN of the CloudWatch log to receive application messages. */ public String getLogStreamARNUpdate() { return this.logStreamARNUpdate; } /** *

* ARN of the CloudWatch log to receive application messages. *

* * @param logStreamARNUpdate * ARN of the CloudWatch log to receive application messages. * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchLoggingOptionUpdate withLogStreamARNUpdate(String logStreamARNUpdate) { setLogStreamARNUpdate(logStreamARNUpdate); return this; } /** *

* IAM ARN of the role to use to send application messages. Note: To write application messages to CloudWatch, the * IAM role used must have the PutLogEvents policy action enabled. *

* * @param roleARNUpdate * IAM ARN of the role to use to send application messages. Note: To write application messages to * CloudWatch, the IAM role used must have the PutLogEvents policy action enabled. */ public void setRoleARNUpdate(String roleARNUpdate) { this.roleARNUpdate = roleARNUpdate; } /** *

* IAM ARN of the role to use to send application messages. Note: To write application messages to CloudWatch, the * IAM role used must have the PutLogEvents policy action enabled. *

* * @return IAM ARN of the role to use to send application messages. Note: To write application messages to * CloudWatch, the IAM role used must have the PutLogEvents policy action enabled. */ public String getRoleARNUpdate() { return this.roleARNUpdate; } /** *

* IAM ARN of the role to use to send application messages. Note: To write application messages to CloudWatch, the * IAM role used must have the PutLogEvents policy action enabled. *

* * @param roleARNUpdate * IAM ARN of the role to use to send application messages. Note: To write application messages to * CloudWatch, the IAM role used must have the PutLogEvents policy action enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public CloudWatchLoggingOptionUpdate withRoleARNUpdate(String roleARNUpdate) { setRoleARNUpdate(roleARNUpdate); 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 (getCloudWatchLoggingOptionId() != null) sb.append("CloudWatchLoggingOptionId: ").append(getCloudWatchLoggingOptionId()).append(","); if (getLogStreamARNUpdate() != null) sb.append("LogStreamARNUpdate: ").append(getLogStreamARNUpdate()).append(","); if (getRoleARNUpdate() != null) sb.append("RoleARNUpdate: ").append(getRoleARNUpdate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CloudWatchLoggingOptionUpdate == false) return false; CloudWatchLoggingOptionUpdate other = (CloudWatchLoggingOptionUpdate) obj; if (other.getCloudWatchLoggingOptionId() == null ^ this.getCloudWatchLoggingOptionId() == null) return false; if (other.getCloudWatchLoggingOptionId() != null && other.getCloudWatchLoggingOptionId().equals(this.getCloudWatchLoggingOptionId()) == false) return false; if (other.getLogStreamARNUpdate() == null ^ this.getLogStreamARNUpdate() == null) return false; if (other.getLogStreamARNUpdate() != null && other.getLogStreamARNUpdate().equals(this.getLogStreamARNUpdate()) == false) return false; if (other.getRoleARNUpdate() == null ^ this.getRoleARNUpdate() == null) return false; if (other.getRoleARNUpdate() != null && other.getRoleARNUpdate().equals(this.getRoleARNUpdate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCloudWatchLoggingOptionId() == null) ? 0 : getCloudWatchLoggingOptionId().hashCode()); hashCode = prime * hashCode + ((getLogStreamARNUpdate() == null) ? 0 : getLogStreamARNUpdate().hashCode()); hashCode = prime * hashCode + ((getRoleARNUpdate() == null) ? 0 : getRoleARNUpdate().hashCode()); return hashCode; } @Override public CloudWatchLoggingOptionUpdate clone() { try { return (CloudWatchLoggingOptionUpdate) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.kinesisanalytics.model.transform.CloudWatchLoggingOptionUpdateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy