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

com.amazonaws.services.lookoutmetrics.model.SampleDataS3SourceConfig Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2018-2023 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.lookoutmetrics.model;

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

/**
 * 

* Contains information about the source configuration in Amazon S3. *

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

* The Amazon Resource Name (ARN) of the role. *

*/ private String roleArn; /** *

* An array of strings containing the list of templated paths. *

*/ private java.util.List templatedPathList; /** *

* An array of strings containing the historical set of data paths. *

*/ private java.util.List historicalDataPathList; private FileFormatDescriptor fileFormatDescriptor; /** *

* The Amazon Resource Name (ARN) of the role. *

* * @param roleArn * The Amazon Resource Name (ARN) of the role. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The Amazon Resource Name (ARN) of the role. *

* * @return The Amazon Resource Name (ARN) of the role. */ public String getRoleArn() { return this.roleArn; } /** *

* The Amazon Resource Name (ARN) of the role. *

* * @param roleArn * The Amazon Resource Name (ARN) of the role. * @return Returns a reference to this object so that method calls can be chained together. */ public SampleDataS3SourceConfig withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* An array of strings containing the list of templated paths. *

* * @return An array of strings containing the list of templated paths. */ public java.util.List getTemplatedPathList() { return templatedPathList; } /** *

* An array of strings containing the list of templated paths. *

* * @param templatedPathList * An array of strings containing the list of templated paths. */ public void setTemplatedPathList(java.util.Collection templatedPathList) { if (templatedPathList == null) { this.templatedPathList = null; return; } this.templatedPathList = new java.util.ArrayList(templatedPathList); } /** *

* An array of strings containing the list of templated paths. *

*

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

* * @param templatedPathList * An array of strings containing the list of templated paths. * @return Returns a reference to this object so that method calls can be chained together. */ public SampleDataS3SourceConfig withTemplatedPathList(String... templatedPathList) { if (this.templatedPathList == null) { setTemplatedPathList(new java.util.ArrayList(templatedPathList.length)); } for (String ele : templatedPathList) { this.templatedPathList.add(ele); } return this; } /** *

* An array of strings containing the list of templated paths. *

* * @param templatedPathList * An array of strings containing the list of templated paths. * @return Returns a reference to this object so that method calls can be chained together. */ public SampleDataS3SourceConfig withTemplatedPathList(java.util.Collection templatedPathList) { setTemplatedPathList(templatedPathList); return this; } /** *

* An array of strings containing the historical set of data paths. *

* * @return An array of strings containing the historical set of data paths. */ public java.util.List getHistoricalDataPathList() { return historicalDataPathList; } /** *

* An array of strings containing the historical set of data paths. *

* * @param historicalDataPathList * An array of strings containing the historical set of data paths. */ public void setHistoricalDataPathList(java.util.Collection historicalDataPathList) { if (historicalDataPathList == null) { this.historicalDataPathList = null; return; } this.historicalDataPathList = new java.util.ArrayList(historicalDataPathList); } /** *

* An array of strings containing the historical set of data paths. *

*

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

* * @param historicalDataPathList * An array of strings containing the historical set of data paths. * @return Returns a reference to this object so that method calls can be chained together. */ public SampleDataS3SourceConfig withHistoricalDataPathList(String... historicalDataPathList) { if (this.historicalDataPathList == null) { setHistoricalDataPathList(new java.util.ArrayList(historicalDataPathList.length)); } for (String ele : historicalDataPathList) { this.historicalDataPathList.add(ele); } return this; } /** *

* An array of strings containing the historical set of data paths. *

* * @param historicalDataPathList * An array of strings containing the historical set of data paths. * @return Returns a reference to this object so that method calls can be chained together. */ public SampleDataS3SourceConfig withHistoricalDataPathList(java.util.Collection historicalDataPathList) { setHistoricalDataPathList(historicalDataPathList); return this; } /** * @param fileFormatDescriptor */ public void setFileFormatDescriptor(FileFormatDescriptor fileFormatDescriptor) { this.fileFormatDescriptor = fileFormatDescriptor; } /** * @return */ public FileFormatDescriptor getFileFormatDescriptor() { return this.fileFormatDescriptor; } /** * @param fileFormatDescriptor * @return Returns a reference to this object so that method calls can be chained together. */ public SampleDataS3SourceConfig withFileFormatDescriptor(FileFormatDescriptor fileFormatDescriptor) { setFileFormatDescriptor(fileFormatDescriptor); 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 (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getTemplatedPathList() != null) sb.append("TemplatedPathList: ").append(getTemplatedPathList()).append(","); if (getHistoricalDataPathList() != null) sb.append("HistoricalDataPathList: ").append(getHistoricalDataPathList()).append(","); if (getFileFormatDescriptor() != null) sb.append("FileFormatDescriptor: ").append(getFileFormatDescriptor()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SampleDataS3SourceConfig == false) return false; SampleDataS3SourceConfig other = (SampleDataS3SourceConfig) obj; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getTemplatedPathList() == null ^ this.getTemplatedPathList() == null) return false; if (other.getTemplatedPathList() != null && other.getTemplatedPathList().equals(this.getTemplatedPathList()) == false) return false; if (other.getHistoricalDataPathList() == null ^ this.getHistoricalDataPathList() == null) return false; if (other.getHistoricalDataPathList() != null && other.getHistoricalDataPathList().equals(this.getHistoricalDataPathList()) == false) return false; if (other.getFileFormatDescriptor() == null ^ this.getFileFormatDescriptor() == null) return false; if (other.getFileFormatDescriptor() != null && other.getFileFormatDescriptor().equals(this.getFileFormatDescriptor()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getTemplatedPathList() == null) ? 0 : getTemplatedPathList().hashCode()); hashCode = prime * hashCode + ((getHistoricalDataPathList() == null) ? 0 : getHistoricalDataPathList().hashCode()); hashCode = prime * hashCode + ((getFileFormatDescriptor() == null) ? 0 : getFileFormatDescriptor().hashCode()); return hashCode; } @Override public SampleDataS3SourceConfig clone() { try { return (SampleDataS3SourceConfig) 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.lookoutmetrics.model.transform.SampleDataS3SourceConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy