236 lines
12 KiB
C++
236 lines
12 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iam/IAM_EXPORTS.h>
|
|
#include <aws/iam/IAMRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace IAM
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IAM_API CreateInstanceProfileRequest : public IAMRequest
|
|
{
|
|
public:
|
|
CreateInstanceProfileRequest();
|
|
|
|
// 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 "CreateInstanceProfile"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
protected:
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* <p>The name of the instance profile to create.</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of upper and lowercase alphanumeric characters
|
|
* with no spaces. You can also include any of the following characters:
|
|
* _+=,.@-</p>
|
|
*/
|
|
inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; }
|
|
|
|
/**
|
|
* <p>The name of the instance profile to create.</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of upper and lowercase alphanumeric characters
|
|
* with no spaces. You can also include any of the following characters:
|
|
* _+=,.@-</p>
|
|
*/
|
|
inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the instance profile to create.</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of upper and lowercase alphanumeric characters
|
|
* with no spaces. You can also include any of the following characters:
|
|
* _+=,.@-</p>
|
|
*/
|
|
inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; }
|
|
|
|
/**
|
|
* <p>The name of the instance profile to create.</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of upper and lowercase alphanumeric characters
|
|
* with no spaces. You can also include any of the following characters:
|
|
* _+=,.@-</p>
|
|
*/
|
|
inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the instance profile to create.</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of upper and lowercase alphanumeric characters
|
|
* with no spaces. You can also include any of the following characters:
|
|
* _+=,.@-</p>
|
|
*/
|
|
inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the instance profile to create.</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of upper and lowercase alphanumeric characters
|
|
* with no spaces. You can also include any of the following characters:
|
|
* _+=,.@-</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithInstanceProfileName(const Aws::String& value) { SetInstanceProfileName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the instance profile to create.</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of upper and lowercase alphanumeric characters
|
|
* with no spaces. You can also include any of the following characters:
|
|
* _+=,.@-</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithInstanceProfileName(Aws::String&& value) { SetInstanceProfileName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the instance profile to create.</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of upper and lowercase alphanumeric characters
|
|
* with no spaces. You can also include any of the following characters:
|
|
* _+=,.@-</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithInstanceProfileName(const char* value) { SetInstanceProfileName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The path to the instance profile. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional.
|
|
* If it is not included, it defaults to a slash (/).</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of either a forward slash (/) by itself or a
|
|
* string that must begin and end with forward slashes. In addition, it can contain
|
|
* any ASCII character from the ! (<code>\u0021</code>) through the DEL character
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|
* and lowercased letters.</p>
|
|
*/
|
|
inline const Aws::String& GetPath() const{ return m_path; }
|
|
|
|
/**
|
|
* <p> The path to the instance profile. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional.
|
|
* If it is not included, it defaults to a slash (/).</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of either a forward slash (/) by itself or a
|
|
* string that must begin and end with forward slashes. In addition, it can contain
|
|
* any ASCII character from the ! (<code>\u0021</code>) through the DEL character
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|
* and lowercased letters.</p>
|
|
*/
|
|
inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The path to the instance profile. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional.
|
|
* If it is not included, it defaults to a slash (/).</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of either a forward slash (/) by itself or a
|
|
* string that must begin and end with forward slashes. In addition, it can contain
|
|
* any ASCII character from the ! (<code>\u0021</code>) through the DEL character
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|
* and lowercased letters.</p>
|
|
*/
|
|
inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
|
|
|
|
/**
|
|
* <p> The path to the instance profile. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional.
|
|
* If it is not included, it defaults to a slash (/).</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of either a forward slash (/) by itself or a
|
|
* string that must begin and end with forward slashes. In addition, it can contain
|
|
* any ASCII character from the ! (<code>\u0021</code>) through the DEL character
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|
* and lowercased letters.</p>
|
|
*/
|
|
inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
|
|
|
|
/**
|
|
* <p> The path to the instance profile. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional.
|
|
* If it is not included, it defaults to a slash (/).</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of either a forward slash (/) by itself or a
|
|
* string that must begin and end with forward slashes. In addition, it can contain
|
|
* any ASCII character from the ! (<code>\u0021</code>) through the DEL character
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|
* and lowercased letters.</p>
|
|
*/
|
|
inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
|
|
|
|
/**
|
|
* <p> The path to the instance profile. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional.
|
|
* If it is not included, it defaults to a slash (/).</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of either a forward slash (/) by itself or a
|
|
* string that must begin and end with forward slashes. In addition, it can contain
|
|
* any ASCII character from the ! (<code>\u0021</code>) through the DEL character
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|
* and lowercased letters.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
|
|
|
|
/**
|
|
* <p> The path to the instance profile. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional.
|
|
* If it is not included, it defaults to a slash (/).</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of either a forward slash (/) by itself or a
|
|
* string that must begin and end with forward slashes. In addition, it can contain
|
|
* any ASCII character from the ! (<code>\u0021</code>) through the DEL character
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|
* and lowercased letters.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The path to the instance profile. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p> <p>This parameter is optional.
|
|
* If it is not included, it defaults to a slash (/).</p> <p>This parameter allows
|
|
* (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a
|
|
* string of characters consisting of either a forward slash (/) by itself or a
|
|
* string that must begin and end with forward slashes. In addition, it can contain
|
|
* any ASCII character from the ! (<code>\u0021</code>) through the DEL character
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|
* and lowercased letters.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithPath(const char* value) { SetPath(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_instanceProfileName;
|
|
bool m_instanceProfileNameHasBeenSet;
|
|
|
|
Aws::String m_path;
|
|
bool m_pathHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IAM
|
|
} // namespace Aws
|