AWS SDK for C++  1.9.160
AWS SDK for C++
Public Member Functions | List of all members
Aws::Organizations::Model::TagResourceRequest Class Reference

#include <TagResourceRequest.h>

+ Inheritance diagram for Aws::Organizations::Model::TagResourceRequest:

Public Member Functions

 TagResourceRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders () const override
 
const Aws::StringGetResourceId () const
 
bool ResourceIdHasBeenSet () const
 
void SetResourceId (const Aws::String &value)
 
void SetResourceId (Aws::String &&value)
 
void SetResourceId (const char *value)
 
TagResourceRequestWithResourceId (const Aws::String &value)
 
TagResourceRequestWithResourceId (Aws::String &&value)
 
TagResourceRequestWithResourceId (const char *value)
 
const Aws::Vector< Tag > & GetTags () const
 
bool TagsHasBeenSet () const
 
void SetTags (const Aws::Vector< Tag > &value)
 
void SetTags (Aws::Vector< Tag > &&value)
 
TagResourceRequestWithTags (const Aws::Vector< Tag > &value)
 
TagResourceRequestWithTags (Aws::Vector< Tag > &&value)
 
TagResourceRequestAddTags (const Tag &value)
 
TagResourceRequestAddTags (Tag &&value)
 
- Public Member Functions inherited from Aws::Organizations::OrganizationsRequest
virtual ~OrganizationsRequest ()
 
void AddParametersToRequest (Aws::Http::HttpRequest &httpRequest) const
 
Aws::Http::HeaderValueCollection GetHeaders () const override
 
- Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest
 AmazonSerializableWebServiceRequest ()
 
virtual ~AmazonSerializableWebServiceRequest ()
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 
- Public Member Functions inherited from Aws::AmazonWebServiceRequest
 AmazonWebServiceRequest ()
 
virtual ~AmazonWebServiceRequest ()=default
 
virtual void AddQueryStringParameters (Aws::Http::URI &uri) const
 
virtual void PutToPresignedUrl (Aws::Http::URI &uri) const
 
virtual bool IsStreaming () const
 
virtual bool IsEventStreamRequest () const
 
virtual bool SignBody () const
 
virtual bool IsChunked () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
virtual const RequestSignedHandlerGetRequestSignedHandler () const
 
const Aws::IOStreamFactoryGetResponseStreamFactory () const
 
void SetResponseStreamFactory (const Aws::IOStreamFactory &factory)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
virtual void SetRequestRetryHandler (RequestRetryHandler &&handler)
 
virtual const Aws::Http::DataReceivedEventHandlerGetDataReceivedEventHandler () const
 
virtual const Aws::Http::DataSentEventHandlerGetDataSentEventHandler () const
 
virtual const Aws::Http::ContinueRequestHandlerGetContinueRequestHandler () const
 
virtual const RequestRetryHandlerGetRequestRetryHandler () const
 
virtual bool ShouldComputeContentMd5 () const
 

Additional Inherited Members

- Protected Member Functions inherited from Aws::AmazonWebServiceRequest
virtual void DumpBodyToUrl (Aws::Http::URI &uri) const
 

Detailed Description

Definition at line 23 of file TagResourceRequest.h.

Constructor & Destructor Documentation

◆ TagResourceRequest()

Aws::Organizations::Model::TagResourceRequest::TagResourceRequest ( )

Member Function Documentation

◆ AddTags() [1/2]

TagResourceRequest& Aws::Organizations::Model::TagResourceRequest::AddTags ( const Tag value)
inline

A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Definition at line 197 of file TagResourceRequest.h.

◆ AddTags() [2/2]

TagResourceRequest& Aws::Organizations::Model::TagResourceRequest::AddTags ( Tag &&  value)
inline

A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Definition at line 214 of file TagResourceRequest.h.

◆ GetRequestSpecificHeaders()

Aws::Http::HeaderValueCollection Aws::Organizations::Model::TagResourceRequest::GetRequestSpecificHeaders ( ) const
overridevirtual

◆ GetResourceId()

const Aws::String& Aws::Organizations::Model::TagResourceRequest::GetResourceId ( ) const
inline

The ID of the resource to add a tag to.

Definition at line 42 of file TagResourceRequest.h.

◆ GetServiceRequestName()

virtual const char* Aws::Organizations::Model::TagResourceRequest::GetServiceRequestName ( ) const
inlineoverridevirtual

Implements Aws::AmazonWebServiceRequest.

Definition at line 32 of file TagResourceRequest.h.

◆ GetTags()

const Aws::Vector<Tag>& Aws::Organizations::Model::TagResourceRequest::GetTags ( ) const
inline

A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Definition at line 95 of file TagResourceRequest.h.

◆ ResourceIdHasBeenSet()

bool Aws::Organizations::Model::TagResourceRequest::ResourceIdHasBeenSet ( ) const
inline

The ID of the resource to add a tag to.

Definition at line 47 of file TagResourceRequest.h.

◆ SerializePayload()

Aws::String Aws::Organizations::Model::TagResourceRequest::SerializePayload ( ) const
overridevirtual

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetResourceId() [1/3]

void Aws::Organizations::Model::TagResourceRequest::SetResourceId ( Aws::String &&  value)
inline

The ID of the resource to add a tag to.

Definition at line 57 of file TagResourceRequest.h.

◆ SetResourceId() [2/3]

void Aws::Organizations::Model::TagResourceRequest::SetResourceId ( const Aws::String value)
inline

The ID of the resource to add a tag to.

Definition at line 52 of file TagResourceRequest.h.

◆ SetResourceId() [3/3]

void Aws::Organizations::Model::TagResourceRequest::SetResourceId ( const char *  value)
inline

The ID of the resource to add a tag to.

Definition at line 62 of file TagResourceRequest.h.

◆ SetTags() [1/2]

void Aws::Organizations::Model::TagResourceRequest::SetTags ( Aws::Vector< Tag > &&  value)
inline

A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Definition at line 146 of file TagResourceRequest.h.

◆ SetTags() [2/2]

void Aws::Organizations::Model::TagResourceRequest::SetTags ( const Aws::Vector< Tag > &  value)
inline

A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Definition at line 129 of file TagResourceRequest.h.

◆ TagsHasBeenSet()

bool Aws::Organizations::Model::TagResourceRequest::TagsHasBeenSet ( ) const
inline

A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Definition at line 112 of file TagResourceRequest.h.

◆ WithResourceId() [1/3]

TagResourceRequest& Aws::Organizations::Model::TagResourceRequest::WithResourceId ( Aws::String &&  value)
inline

The ID of the resource to add a tag to.

Definition at line 72 of file TagResourceRequest.h.

◆ WithResourceId() [2/3]

TagResourceRequest& Aws::Organizations::Model::TagResourceRequest::WithResourceId ( const Aws::String value)
inline

The ID of the resource to add a tag to.

Definition at line 67 of file TagResourceRequest.h.

◆ WithResourceId() [3/3]

TagResourceRequest& Aws::Organizations::Model::TagResourceRequest::WithResourceId ( const char *  value)
inline

The ID of the resource to add a tag to.

Definition at line 77 of file TagResourceRequest.h.

◆ WithTags() [1/2]

TagResourceRequest& Aws::Organizations::Model::TagResourceRequest::WithTags ( Aws::Vector< Tag > &&  value)
inline

A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Definition at line 180 of file TagResourceRequest.h.

◆ WithTags() [2/2]

TagResourceRequest& Aws::Organizations::Model::TagResourceRequest::WithTags ( const Aws::Vector< Tag > &  value)
inline

A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Definition at line 163 of file TagResourceRequest.h.


The documentation for this class was generated from the following file: