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

com.amazonaws.services.databasemigrationservice.model.CreateFleetAdvisorCollectorRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Database Migration Service module holds the client classes that are used for communicating with AWS Database Migration 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.databasemigrationservice.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 CreateFleetAdvisorCollectorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of your Fleet Advisor collector (for example, sample-collector). *

*/ private String collectorName; /** *

* A summary description of your Fleet Advisor collector. *

*/ private String description; /** *

* The IAM role that grants permissions to access the specified Amazon S3 bucket. *

*/ private String serviceAccessRoleArn; /** *

* The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata. *

*/ private String s3BucketName; /** *

* The name of your Fleet Advisor collector (for example, sample-collector). *

* * @param collectorName * The name of your Fleet Advisor collector (for example, sample-collector). */ public void setCollectorName(String collectorName) { this.collectorName = collectorName; } /** *

* The name of your Fleet Advisor collector (for example, sample-collector). *

* * @return The name of your Fleet Advisor collector (for example, sample-collector). */ public String getCollectorName() { return this.collectorName; } /** *

* The name of your Fleet Advisor collector (for example, sample-collector). *

* * @param collectorName * The name of your Fleet Advisor collector (for example, sample-collector). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetAdvisorCollectorRequest withCollectorName(String collectorName) { setCollectorName(collectorName); return this; } /** *

* A summary description of your Fleet Advisor collector. *

* * @param description * A summary description of your Fleet Advisor collector. */ public void setDescription(String description) { this.description = description; } /** *

* A summary description of your Fleet Advisor collector. *

* * @return A summary description of your Fleet Advisor collector. */ public String getDescription() { return this.description; } /** *

* A summary description of your Fleet Advisor collector. *

* * @param description * A summary description of your Fleet Advisor collector. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetAdvisorCollectorRequest withDescription(String description) { setDescription(description); return this; } /** *

* The IAM role that grants permissions to access the specified Amazon S3 bucket. *

* * @param serviceAccessRoleArn * The IAM role that grants permissions to access the specified Amazon S3 bucket. */ public void setServiceAccessRoleArn(String serviceAccessRoleArn) { this.serviceAccessRoleArn = serviceAccessRoleArn; } /** *

* The IAM role that grants permissions to access the specified Amazon S3 bucket. *

* * @return The IAM role that grants permissions to access the specified Amazon S3 bucket. */ public String getServiceAccessRoleArn() { return this.serviceAccessRoleArn; } /** *

* The IAM role that grants permissions to access the specified Amazon S3 bucket. *

* * @param serviceAccessRoleArn * The IAM role that grants permissions to access the specified Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetAdvisorCollectorRequest withServiceAccessRoleArn(String serviceAccessRoleArn) { setServiceAccessRoleArn(serviceAccessRoleArn); return this; } /** *

* The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata. *

* * @param s3BucketName * The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata. */ public void setS3BucketName(String s3BucketName) { this.s3BucketName = s3BucketName; } /** *

* The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata. *

* * @return The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata. */ public String getS3BucketName() { return this.s3BucketName; } /** *

* The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata. *

* * @param s3BucketName * The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetAdvisorCollectorRequest withS3BucketName(String s3BucketName) { setS3BucketName(s3BucketName); 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 (getCollectorName() != null) sb.append("CollectorName: ").append(getCollectorName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getServiceAccessRoleArn() != null) sb.append("ServiceAccessRoleArn: ").append(getServiceAccessRoleArn()).append(","); if (getS3BucketName() != null) sb.append("S3BucketName: ").append(getS3BucketName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateFleetAdvisorCollectorRequest == false) return false; CreateFleetAdvisorCollectorRequest other = (CreateFleetAdvisorCollectorRequest) obj; if (other.getCollectorName() == null ^ this.getCollectorName() == null) return false; if (other.getCollectorName() != null && other.getCollectorName().equals(this.getCollectorName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getServiceAccessRoleArn() == null ^ this.getServiceAccessRoleArn() == null) return false; if (other.getServiceAccessRoleArn() != null && other.getServiceAccessRoleArn().equals(this.getServiceAccessRoleArn()) == false) return false; if (other.getS3BucketName() == null ^ this.getS3BucketName() == null) return false; if (other.getS3BucketName() != null && other.getS3BucketName().equals(this.getS3BucketName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCollectorName() == null) ? 0 : getCollectorName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getServiceAccessRoleArn() == null) ? 0 : getServiceAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getS3BucketName() == null) ? 0 : getS3BucketName().hashCode()); return hashCode; } @Override public CreateFleetAdvisorCollectorRequest clone() { return (CreateFleetAdvisorCollectorRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy