/** * 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 namespace Aws { namespace IoT { namespace Model { /** */ class CreateBillingGroupRequest : public IoTRequest { public: AWS_IOT_API CreateBillingGroupRequest(); // 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 "CreateBillingGroup"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The name you wish to give to the billing group.

*/ inline const Aws::String& GetBillingGroupName() const{ return m_billingGroupName; } /** *

The name you wish to give to the billing group.

*/ inline bool BillingGroupNameHasBeenSet() const { return m_billingGroupNameHasBeenSet; } /** *

The name you wish to give to the billing group.

*/ inline void SetBillingGroupName(const Aws::String& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = value; } /** *

The name you wish to give to the billing group.

*/ inline void SetBillingGroupName(Aws::String&& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = std::move(value); } /** *

The name you wish to give to the billing group.

*/ inline void SetBillingGroupName(const char* value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName.assign(value); } /** *

The name you wish to give to the billing group.

*/ inline CreateBillingGroupRequest& WithBillingGroupName(const Aws::String& value) { SetBillingGroupName(value); return *this;} /** *

The name you wish to give to the billing group.

*/ inline CreateBillingGroupRequest& WithBillingGroupName(Aws::String&& value) { SetBillingGroupName(std::move(value)); return *this;} /** *

The name you wish to give to the billing group.

*/ inline CreateBillingGroupRequest& WithBillingGroupName(const char* value) { SetBillingGroupName(value); return *this;} /** *

The properties of the billing group.

*/ inline const BillingGroupProperties& GetBillingGroupProperties() const{ return m_billingGroupProperties; } /** *

The properties of the billing group.

*/ inline bool BillingGroupPropertiesHasBeenSet() const { return m_billingGroupPropertiesHasBeenSet; } /** *

The properties of the billing group.

*/ inline void SetBillingGroupProperties(const BillingGroupProperties& value) { m_billingGroupPropertiesHasBeenSet = true; m_billingGroupProperties = value; } /** *

The properties of the billing group.

*/ inline void SetBillingGroupProperties(BillingGroupProperties&& value) { m_billingGroupPropertiesHasBeenSet = true; m_billingGroupProperties = std::move(value); } /** *

The properties of the billing group.

*/ inline CreateBillingGroupRequest& WithBillingGroupProperties(const BillingGroupProperties& value) { SetBillingGroupProperties(value); return *this;} /** *

The properties of the billing group.

*/ inline CreateBillingGroupRequest& WithBillingGroupProperties(BillingGroupProperties&& value) { SetBillingGroupProperties(std::move(value)); return *this;} /** *

Metadata which can be used to manage the billing group.

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

Metadata which can be used to manage the billing group.

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

Metadata which can be used to manage the billing group.

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

Metadata which can be used to manage the billing group.

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

Metadata which can be used to manage the billing group.

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

Metadata which can be used to manage the billing group.

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

Metadata which can be used to manage the billing group.

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

Metadata which can be used to manage the billing group.

*/ inline CreateBillingGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_billingGroupName; bool m_billingGroupNameHasBeenSet = false; BillingGroupProperties m_billingGroupProperties; bool m_billingGroupPropertiesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws