AWS SDK for C++  1.9.154
AWS SDK for C++
Public Member Functions | List of all members
Aws::IAM::Model::Tag Class Reference

#include <Tag.h>

Public Member Functions

 Tag ()
 
 Tag (const Aws::Utils::Xml::XmlNode &xmlNode)
 
Tagoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
const Aws::StringGetKey () const
 
bool KeyHasBeenSet () const
 
void SetKey (const Aws::String &value)
 
void SetKey (Aws::String &&value)
 
void SetKey (const char *value)
 
TagWithKey (const Aws::String &value)
 
TagWithKey (Aws::String &&value)
 
TagWithKey (const char *value)
 
const Aws::StringGetValue () const
 
bool ValueHasBeenSet () const
 
void SetValue (const Aws::String &value)
 
void SetValue (Aws::String &&value)
 
void SetValue (const char *value)
 
TagWithValue (const Aws::String &value)
 
TagWithValue (Aws::String &&value)
 
TagWithValue (const char *value)
 

Detailed Description

A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

See Also:

AWS API Reference

Definition at line 34 of file Tag.h.

Constructor & Destructor Documentation

◆ Tag() [1/2]

Aws::IAM::Model::Tag::Tag ( )

◆ Tag() [2/2]

Aws::IAM::Model::Tag::Tag ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ GetKey()

const Aws::String& Aws::IAM::Model::Tag::GetKey ( ) const
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 50 of file Tag.h.

◆ GetValue()

const Aws::String& Aws::IAM::Model::Tag::GetValue ( ) const
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 113 of file Tag.h.

◆ KeyHasBeenSet()

bool Aws::IAM::Model::Tag::KeyHasBeenSet ( ) const
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 57 of file Tag.h.

◆ operator=()

Tag& Aws::IAM::Model::Tag::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::IAM::Model::Tag::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ OutputToStream() [2/2]

void Aws::IAM::Model::Tag::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ SetKey() [1/3]

void Aws::IAM::Model::Tag::SetKey ( Aws::String &&  value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 71 of file Tag.h.

◆ SetKey() [2/3]

void Aws::IAM::Model::Tag::SetKey ( const Aws::String value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 64 of file Tag.h.

◆ SetKey() [3/3]

void Aws::IAM::Model::Tag::SetKey ( const char *  value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 78 of file Tag.h.

◆ SetValue() [1/3]

void Aws::IAM::Model::Tag::SetValue ( Aws::String &&  value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 152 of file Tag.h.

◆ SetValue() [2/3]

void Aws::IAM::Model::Tag::SetValue ( const Aws::String value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 139 of file Tag.h.

◆ SetValue() [3/3]

void Aws::IAM::Model::Tag::SetValue ( const char *  value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 165 of file Tag.h.

◆ ValueHasBeenSet()

bool Aws::IAM::Model::Tag::ValueHasBeenSet ( ) const
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 126 of file Tag.h.

◆ WithKey() [1/3]

Tag& Aws::IAM::Model::Tag::WithKey ( Aws::String &&  value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 92 of file Tag.h.

◆ WithKey() [2/3]

Tag& Aws::IAM::Model::Tag::WithKey ( const Aws::String value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 85 of file Tag.h.

◆ WithKey() [3/3]

Tag& Aws::IAM::Model::Tag::WithKey ( const char *  value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 99 of file Tag.h.

◆ WithValue() [1/3]

Tag& Aws::IAM::Model::Tag::WithValue ( Aws::String &&  value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 191 of file Tag.h.

◆ WithValue() [2/3]

Tag& Aws::IAM::Model::Tag::WithValue ( const Aws::String value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 178 of file Tag.h.

◆ WithValue() [3/3]

Tag& Aws::IAM::Model::Tag::WithValue ( const char *  value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 204 of file Tag.h.


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