/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace IoTWireless { namespace Model { /** */ class AssociateAwsAccountWithPartnerAccountRequest : public IoTWirelessRequest { public: AWS_IOTWIRELESS_API AssociateAwsAccountWithPartnerAccountRequest(); // 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 "AssociateAwsAccountWithPartnerAccount"; } AWS_IOTWIRELESS_API Aws::String SerializePayload() const override; /** *

The Sidewalk account credentials.

*/ inline const SidewalkAccountInfo& GetSidewalk() const{ return m_sidewalk; } /** *

The Sidewalk account credentials.

*/ inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; } /** *

The Sidewalk account credentials.

*/ inline void SetSidewalk(const SidewalkAccountInfo& value) { m_sidewalkHasBeenSet = true; m_sidewalk = value; } /** *

The Sidewalk account credentials.

*/ inline void SetSidewalk(SidewalkAccountInfo&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::move(value); } /** *

The Sidewalk account credentials.

*/ inline AssociateAwsAccountWithPartnerAccountRequest& WithSidewalk(const SidewalkAccountInfo& value) { SetSidewalk(value); return *this;} /** *

The Sidewalk account credentials.

*/ inline AssociateAwsAccountWithPartnerAccountRequest& WithSidewalk(SidewalkAccountInfo&& value) { SetSidewalk(std::move(value)); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline AssociateAwsAccountWithPartnerAccountRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline AssociateAwsAccountWithPartnerAccountRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline AssociateAwsAccountWithPartnerAccountRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

*/ inline AssociateAwsAccountWithPartnerAccountRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: SidewalkAccountInfo m_sidewalk; bool m_sidewalkHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTWireless } // namespace Aws