/* * 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.route53resolver.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 CreateOutpostResolverRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A unique string that identifies the request and that allows failed requests to be retried without the risk of * running the operation twice. *
*
* CreatorRequestId
can be any unique string, for example, a date/time stamp.
*
* A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console. *
*/ private String name; /** ** Number of Amazon EC2 instances for the Resolver on Outpost. The default and minimal value is 4. *
*/ private Integer instanceCount; /** *
* The Amazon EC2 instance type. If you specify this, you must also specify a value for the OutpostArn
.
*
* The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must also specify a value for the
* PreferredInstanceType
.
*
* A string that helps identify the Route 53 Resolvers on Outpost. *
*/ private java.util.List* A unique string that identifies the request and that allows failed requests to be retried without the risk of * running the operation twice. *
*
* CreatorRequestId
can be any unique string, for example, a date/time stamp.
*
* CreatorRequestId
can be any unique string, for example, a date/time stamp.
*/
public void setCreatorRequestId(String creatorRequestId) {
this.creatorRequestId = creatorRequestId;
}
/**
*
* A unique string that identifies the request and that allows failed requests to be retried without the risk of * running the operation twice. *
*
* CreatorRequestId
can be any unique string, for example, a date/time stamp.
*
* CreatorRequestId
can be any unique string, for example, a date/time stamp.
*/
public String getCreatorRequestId() {
return this.creatorRequestId;
}
/**
*
* A unique string that identifies the request and that allows failed requests to be retried without the risk of * running the operation twice. *
*
* CreatorRequestId
can be any unique string, for example, a date/time stamp.
*
* CreatorRequestId
can be any unique string, for example, a date/time stamp.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateOutpostResolverRequest withCreatorRequestId(String creatorRequestId) {
setCreatorRequestId(creatorRequestId);
return this;
}
/**
*
* A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console. *
* * @param name * A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 * console. */ public void setName(String name) { this.name = name; } /** ** A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console. *
* * @return A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 * console. */ public String getName() { return this.name; } /** ** A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console. *
* * @param name * A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 * console. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateOutpostResolverRequest withName(String name) { setName(name); return this; } /** ** Number of Amazon EC2 instances for the Resolver on Outpost. The default and minimal value is 4. *
* * @param instanceCount * Number of Amazon EC2 instances for the Resolver on Outpost. The default and minimal value is 4. */ public void setInstanceCount(Integer instanceCount) { this.instanceCount = instanceCount; } /** ** Number of Amazon EC2 instances for the Resolver on Outpost. The default and minimal value is 4. *
* * @return Number of Amazon EC2 instances for the Resolver on Outpost. The default and minimal value is 4. */ public Integer getInstanceCount() { return this.instanceCount; } /** ** Number of Amazon EC2 instances for the Resolver on Outpost. The default and minimal value is 4. *
* * @param instanceCount * Number of Amazon EC2 instances for the Resolver on Outpost. The default and minimal value is 4. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateOutpostResolverRequest withInstanceCount(Integer instanceCount) { setInstanceCount(instanceCount); return this; } /** *
* The Amazon EC2 instance type. If you specify this, you must also specify a value for the OutpostArn
.
*
OutpostArn
.
*/
public void setPreferredInstanceType(String preferredInstanceType) {
this.preferredInstanceType = preferredInstanceType;
}
/**
*
* The Amazon EC2 instance type. If you specify this, you must also specify a value for the OutpostArn
.
*
OutpostArn
.
*/
public String getPreferredInstanceType() {
return this.preferredInstanceType;
}
/**
*
* The Amazon EC2 instance type. If you specify this, you must also specify a value for the OutpostArn
.
*
OutpostArn
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateOutpostResolverRequest withPreferredInstanceType(String preferredInstanceType) {
setPreferredInstanceType(preferredInstanceType);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must also specify a value for the
* PreferredInstanceType
.
*
PreferredInstanceType
.
*/
public void setOutpostArn(String outpostArn) {
this.outpostArn = outpostArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must also specify a value for the
* PreferredInstanceType
.
*
PreferredInstanceType
.
*/
public String getOutpostArn() {
return this.outpostArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must also specify a value for the
* PreferredInstanceType
.
*
PreferredInstanceType
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateOutpostResolverRequest withOutpostArn(String outpostArn) {
setOutpostArn(outpostArn);
return this;
}
/**
* * A string that helps identify the Route 53 Resolvers on Outpost. *
* * @return A string that helps identify the Route 53 Resolvers on Outpost. */ public java.util.List* A string that helps identify the Route 53 Resolvers on Outpost. *
* * @param tags * A string that helps identify the Route 53 Resolvers on Outpost. */ public void setTags(java.util.Collection* A string that helps identify the Route 53 Resolvers on Outpost. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A string that helps identify the Route 53 Resolvers on Outpost. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateOutpostResolverRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A string that helps identify the Route 53 Resolvers on Outpost. *
* * @param tags * A string that helps identify the Route 53 Resolvers on Outpost. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateOutpostResolverRequest withTags(java.util.Collection