/** * 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 ServiceDiscovery { namespace Model { /** */ class UpdatePrivateDnsNamespaceRequest : public ServiceDiscoveryRequest { public: AWS_SERVICEDISCOVERY_API UpdatePrivateDnsNamespaceRequest(); // 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 "UpdatePrivateDnsNamespace"; } AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override; AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the namespace that you want to update.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the namespace that you want to update.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the namespace that you want to update.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the namespace that you want to update.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the namespace that you want to update.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the namespace that you want to update.

*/ inline UpdatePrivateDnsNamespaceRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the namespace that you want to update.

*/ inline UpdatePrivateDnsNamespaceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the namespace that you want to update.

*/ inline UpdatePrivateDnsNamespaceRequest& WithId(const char* value) { SetId(value); return *this;} /** *

A unique string that identifies the request and that allows failed * UpdatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. UpdaterRequestId can be any unique * string (for example, a date/timestamp).

*/ inline const Aws::String& GetUpdaterRequestId() const{ return m_updaterRequestId; } /** *

A unique string that identifies the request and that allows failed * UpdatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. UpdaterRequestId can be any unique * string (for example, a date/timestamp).

*/ inline bool UpdaterRequestIdHasBeenSet() const { return m_updaterRequestIdHasBeenSet; } /** *

A unique string that identifies the request and that allows failed * UpdatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. UpdaterRequestId can be any unique * string (for example, a date/timestamp).

*/ inline void SetUpdaterRequestId(const Aws::String& value) { m_updaterRequestIdHasBeenSet = true; m_updaterRequestId = value; } /** *

A unique string that identifies the request and that allows failed * UpdatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. UpdaterRequestId can be any unique * string (for example, a date/timestamp).

*/ inline void SetUpdaterRequestId(Aws::String&& value) { m_updaterRequestIdHasBeenSet = true; m_updaterRequestId = std::move(value); } /** *

A unique string that identifies the request and that allows failed * UpdatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. UpdaterRequestId can be any unique * string (for example, a date/timestamp).

*/ inline void SetUpdaterRequestId(const char* value) { m_updaterRequestIdHasBeenSet = true; m_updaterRequestId.assign(value); } /** *

A unique string that identifies the request and that allows failed * UpdatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. UpdaterRequestId can be any unique * string (for example, a date/timestamp).

*/ inline UpdatePrivateDnsNamespaceRequest& WithUpdaterRequestId(const Aws::String& value) { SetUpdaterRequestId(value); return *this;} /** *

A unique string that identifies the request and that allows failed * UpdatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. UpdaterRequestId can be any unique * string (for example, a date/timestamp).

*/ inline UpdatePrivateDnsNamespaceRequest& WithUpdaterRequestId(Aws::String&& value) { SetUpdaterRequestId(std::move(value)); return *this;} /** *

A unique string that identifies the request and that allows failed * UpdatePrivateDnsNamespace requests to be retried without the risk * of running the operation twice. UpdaterRequestId can be any unique * string (for example, a date/timestamp).

*/ inline UpdatePrivateDnsNamespaceRequest& WithUpdaterRequestId(const char* value) { SetUpdaterRequestId(value); return *this;} /** *

Updated properties for the private DNS namespace.

*/ inline const PrivateDnsNamespaceChange& GetNamespace() const{ return m_namespace; } /** *

Updated properties for the private DNS namespace.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

Updated properties for the private DNS namespace.

*/ inline void SetNamespace(const PrivateDnsNamespaceChange& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

Updated properties for the private DNS namespace.

*/ inline void SetNamespace(PrivateDnsNamespaceChange&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

Updated properties for the private DNS namespace.

*/ inline UpdatePrivateDnsNamespaceRequest& WithNamespace(const PrivateDnsNamespaceChange& value) { SetNamespace(value); return *this;} /** *

Updated properties for the private DNS namespace.

*/ inline UpdatePrivateDnsNamespaceRequest& WithNamespace(PrivateDnsNamespaceChange&& value) { SetNamespace(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_updaterRequestId; bool m_updaterRequestIdHasBeenSet = false; PrivateDnsNamespaceChange m_namespace; bool m_namespaceHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws