/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Route53Resolver { namespace Model { /** */ class CreateOutpostResolverRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API CreateOutpostResolverRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateOutpostResolver"; } AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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.

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_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.

*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *

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.

*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *

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.

*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *

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.

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *

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.

*/ inline CreateOutpostResolverRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

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.

*/ inline CreateOutpostResolverRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

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.

*/ inline CreateOutpostResolverRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline CreateOutpostResolverRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline CreateOutpostResolverRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline CreateOutpostResolverRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Number of Amazon EC2 instances for the Resolver on Outpost. The default and * minimal value is 4.

*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *

Number of Amazon EC2 instances for the Resolver on Outpost. The default and * minimal value is 4.

*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *

Number of Amazon EC2 instances for the Resolver on Outpost. The default and * minimal value is 4.

*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *

Number of Amazon EC2 instances for the Resolver on Outpost. The default and * minimal value is 4.

*/ inline CreateOutpostResolverRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *

The Amazon EC2 instance type. If you specify this, you must also specify a * value for the OutpostArn.

*/ inline const Aws::String& GetPreferredInstanceType() const{ return m_preferredInstanceType; } /** *

The Amazon EC2 instance type. If you specify this, you must also specify a * value for the OutpostArn.

*/ inline bool PreferredInstanceTypeHasBeenSet() const { return m_preferredInstanceTypeHasBeenSet; } /** *

The Amazon EC2 instance type. If you specify this, you must also specify a * value for the OutpostArn.

*/ inline void SetPreferredInstanceType(const Aws::String& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = value; } /** *

The Amazon EC2 instance type. If you specify this, you must also specify a * value for the OutpostArn.

*/ inline void SetPreferredInstanceType(Aws::String&& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = std::move(value); } /** *

The Amazon EC2 instance type. If you specify this, you must also specify a * value for the OutpostArn.

*/ inline void SetPreferredInstanceType(const char* value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType.assign(value); } /** *

The Amazon EC2 instance type. If you specify this, you must also specify a * value for the OutpostArn.

*/ inline CreateOutpostResolverRequest& WithPreferredInstanceType(const Aws::String& value) { SetPreferredInstanceType(value); return *this;} /** *

The Amazon EC2 instance type. If you specify this, you must also specify a * value for the OutpostArn.

*/ inline CreateOutpostResolverRequest& WithPreferredInstanceType(Aws::String&& value) { SetPreferredInstanceType(std::move(value)); return *this;} /** *

The Amazon EC2 instance type. If you specify this, you must also specify a * value for the OutpostArn.

*/ inline CreateOutpostResolverRequest& WithPreferredInstanceType(const char* value) { SetPreferredInstanceType(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline CreateOutpostResolverRequest& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline CreateOutpostResolverRequest& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline CreateOutpostResolverRequest& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;} /** *

A string that helps identify the Route 53 Resolvers on Outpost.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A string that helps identify the Route 53 Resolvers on Outpost.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A string that helps identify the Route 53 Resolvers on Outpost.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A string that helps identify the Route 53 Resolvers on Outpost.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A string that helps identify the Route 53 Resolvers on Outpost.

*/ inline CreateOutpostResolverRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A string that helps identify the Route 53 Resolvers on Outpost.

*/ inline CreateOutpostResolverRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A string that helps identify the Route 53 Resolvers on Outpost.

*/ inline CreateOutpostResolverRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A string that helps identify the Route 53 Resolvers on Outpost.

*/ inline CreateOutpostResolverRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_instanceCount; bool m_instanceCountHasBeenSet = false; Aws::String m_preferredInstanceType; bool m_preferredInstanceTypeHasBeenSet = false; Aws::String m_outpostArn; bool m_outpostArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws