com.amazonaws.services.alexaforbusiness.model.CreateBusinessReportScheduleRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-alexaforbusiness Show documentation
/*
* Copyright 2013-2018 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.alexaforbusiness.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateBusinessReportScheduleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name identifier of the schedule.
*
*/
private String scheduleName;
/**
*
* The S3 bucket name of the output reports.
*
*/
private String s3BucketName;
/**
*
* The S3 key where the report is delivered.
*
*/
private String s3KeyPrefix;
/**
*
* The format of the generated report (individual CSV files or zipped files of individual files).
*
*/
private String format;
/**
*
* The content range of the reports.
*
*/
private BusinessReportContentRange contentRange;
/**
*
* The recurrence of the reports.
*
*/
private BusinessReportRecurrence recurrence;
/**
*
* The client request token.
*
*/
private String clientRequestToken;
/**
*
* The name identifier of the schedule.
*
*
* @param scheduleName
* The name identifier of the schedule.
*/
public void setScheduleName(String scheduleName) {
this.scheduleName = scheduleName;
}
/**
*
* The name identifier of the schedule.
*
*
* @return The name identifier of the schedule.
*/
public String getScheduleName() {
return this.scheduleName;
}
/**
*
* The name identifier of the schedule.
*
*
* @param scheduleName
* The name identifier of the schedule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBusinessReportScheduleRequest withScheduleName(String scheduleName) {
setScheduleName(scheduleName);
return this;
}
/**
*
* The S3 bucket name of the output reports.
*
*
* @param s3BucketName
* The S3 bucket name of the output reports.
*/
public void setS3BucketName(String s3BucketName) {
this.s3BucketName = s3BucketName;
}
/**
*
* The S3 bucket name of the output reports.
*
*
* @return The S3 bucket name of the output reports.
*/
public String getS3BucketName() {
return this.s3BucketName;
}
/**
*
* The S3 bucket name of the output reports.
*
*
* @param s3BucketName
* The S3 bucket name of the output reports.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBusinessReportScheduleRequest withS3BucketName(String s3BucketName) {
setS3BucketName(s3BucketName);
return this;
}
/**
*
* The S3 key where the report is delivered.
*
*
* @param s3KeyPrefix
* The S3 key where the report is delivered.
*/
public void setS3KeyPrefix(String s3KeyPrefix) {
this.s3KeyPrefix = s3KeyPrefix;
}
/**
*
* The S3 key where the report is delivered.
*
*
* @return The S3 key where the report is delivered.
*/
public String getS3KeyPrefix() {
return this.s3KeyPrefix;
}
/**
*
* The S3 key where the report is delivered.
*
*
* @param s3KeyPrefix
* The S3 key where the report is delivered.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBusinessReportScheduleRequest withS3KeyPrefix(String s3KeyPrefix) {
setS3KeyPrefix(s3KeyPrefix);
return this;
}
/**
*
* The format of the generated report (individual CSV files or zipped files of individual files).
*
*
* @param format
* The format of the generated report (individual CSV files or zipped files of individual files).
* @see BusinessReportFormat
*/
public void setFormat(String format) {
this.format = format;
}
/**
*
* The format of the generated report (individual CSV files or zipped files of individual files).
*
*
* @return The format of the generated report (individual CSV files or zipped files of individual files).
* @see BusinessReportFormat
*/
public String getFormat() {
return this.format;
}
/**
*
* The format of the generated report (individual CSV files or zipped files of individual files).
*
*
* @param format
* The format of the generated report (individual CSV files or zipped files of individual files).
* @return Returns a reference to this object so that method calls can be chained together.
* @see BusinessReportFormat
*/
public CreateBusinessReportScheduleRequest withFormat(String format) {
setFormat(format);
return this;
}
/**
*
* The format of the generated report (individual CSV files or zipped files of individual files).
*
*
* @param format
* The format of the generated report (individual CSV files or zipped files of individual files).
* @return Returns a reference to this object so that method calls can be chained together.
* @see BusinessReportFormat
*/
public CreateBusinessReportScheduleRequest withFormat(BusinessReportFormat format) {
this.format = format.toString();
return this;
}
/**
*
* The content range of the reports.
*
*
* @param contentRange
* The content range of the reports.
*/
public void setContentRange(BusinessReportContentRange contentRange) {
this.contentRange = contentRange;
}
/**
*
* The content range of the reports.
*
*
* @return The content range of the reports.
*/
public BusinessReportContentRange getContentRange() {
return this.contentRange;
}
/**
*
* The content range of the reports.
*
*
* @param contentRange
* The content range of the reports.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBusinessReportScheduleRequest withContentRange(BusinessReportContentRange contentRange) {
setContentRange(contentRange);
return this;
}
/**
*
* The recurrence of the reports.
*
*
* @param recurrence
* The recurrence of the reports.
*/
public void setRecurrence(BusinessReportRecurrence recurrence) {
this.recurrence = recurrence;
}
/**
*
* The recurrence of the reports.
*
*
* @return The recurrence of the reports.
*/
public BusinessReportRecurrence getRecurrence() {
return this.recurrence;
}
/**
*
* The recurrence of the reports.
*
*
* @param recurrence
* The recurrence of the reports.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBusinessReportScheduleRequest withRecurrence(BusinessReportRecurrence recurrence) {
setRecurrence(recurrence);
return this;
}
/**
*
* The client request token.
*
*
* @param clientRequestToken
* The client request token.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
*
* The client request token.
*
*
* @return The client request token.
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
*
* The client request token.
*
*
* @param clientRequestToken
* The client request token.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBusinessReportScheduleRequest withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
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 (getScheduleName() != null)
sb.append("ScheduleName: ").append(getScheduleName()).append(",");
if (getS3BucketName() != null)
sb.append("S3BucketName: ").append(getS3BucketName()).append(",");
if (getS3KeyPrefix() != null)
sb.append("S3KeyPrefix: ").append(getS3KeyPrefix()).append(",");
if (getFormat() != null)
sb.append("Format: ").append(getFormat()).append(",");
if (getContentRange() != null)
sb.append("ContentRange: ").append(getContentRange()).append(",");
if (getRecurrence() != null)
sb.append("Recurrence: ").append(getRecurrence()).append(",");
if (getClientRequestToken() != null)
sb.append("ClientRequestToken: ").append(getClientRequestToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateBusinessReportScheduleRequest == false)
return false;
CreateBusinessReportScheduleRequest other = (CreateBusinessReportScheduleRequest) obj;
if (other.getScheduleName() == null ^ this.getScheduleName() == null)
return false;
if (other.getScheduleName() != null && other.getScheduleName().equals(this.getScheduleName()) == false)
return false;
if (other.getS3BucketName() == null ^ this.getS3BucketName() == null)
return false;
if (other.getS3BucketName() != null && other.getS3BucketName().equals(this.getS3BucketName()) == false)
return false;
if (other.getS3KeyPrefix() == null ^ this.getS3KeyPrefix() == null)
return false;
if (other.getS3KeyPrefix() != null && other.getS3KeyPrefix().equals(this.getS3KeyPrefix()) == false)
return false;
if (other.getFormat() == null ^ this.getFormat() == null)
return false;
if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false)
return false;
if (other.getContentRange() == null ^ this.getContentRange() == null)
return false;
if (other.getContentRange() != null && other.getContentRange().equals(this.getContentRange()) == false)
return false;
if (other.getRecurrence() == null ^ this.getRecurrence() == null)
return false;
if (other.getRecurrence() != null && other.getRecurrence().equals(this.getRecurrence()) == false)
return false;
if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null)
return false;
if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getScheduleName() == null) ? 0 : getScheduleName().hashCode());
hashCode = prime * hashCode + ((getS3BucketName() == null) ? 0 : getS3BucketName().hashCode());
hashCode = prime * hashCode + ((getS3KeyPrefix() == null) ? 0 : getS3KeyPrefix().hashCode());
hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode());
hashCode = prime * hashCode + ((getContentRange() == null) ? 0 : getContentRange().hashCode());
hashCode = prime * hashCode + ((getRecurrence() == null) ? 0 : getRecurrence().hashCode());
hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode());
return hashCode;
}
@Override
public CreateBusinessReportScheduleRequest clone() {
return (CreateBusinessReportScheduleRequest) super.clone();
}
}