AWS SDK for C++  1.9.129
AWS SDK for C++
PresignedUrlConfig.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
45  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
46 
52  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
53 
59  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
60 
66  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
67 
73  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
74 
80  inline PresignedUrlConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
81 
87  inline PresignedUrlConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
88 
94  inline PresignedUrlConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
95 
96 
102  inline long long GetExpiresInSec() const{ return m_expiresInSec; }
103 
109  inline bool ExpiresInSecHasBeenSet() const { return m_expiresInSecHasBeenSet; }
110 
116  inline void SetExpiresInSec(long long value) { m_expiresInSecHasBeenSet = true; m_expiresInSec = value; }
117 
123  inline PresignedUrlConfig& WithExpiresInSec(long long value) { SetExpiresInSec(value); return *this;}
124 
125  private:
126 
127  Aws::String m_roleArn;
128  bool m_roleArnHasBeenSet;
129 
130  long long m_expiresInSec;
131  bool m_expiresInSecHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace IoT
136 } // namespace Aws
Aws::IoT::Model::PresignedUrlConfig::WithExpiresInSec
PresignedUrlConfig & WithExpiresInSec(long long value)
Definition: PresignedUrlConfig.h:123
Aws::IoT::Model::PresignedUrlConfig::ExpiresInSecHasBeenSet
bool ExpiresInSecHasBeenSet() const
Definition: PresignedUrlConfig.h:109
Aws::IoT::Model::PresignedUrlConfig
Definition: PresignedUrlConfig.h:32
Aws::IoT::Model::PresignedUrlConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::PresignedUrlConfig::WithRoleArn
PresignedUrlConfig & WithRoleArn(Aws::String &&value)
Definition: PresignedUrlConfig.h:87
Aws::IoT::Model::PresignedUrlConfig::WithRoleArn
PresignedUrlConfig & WithRoleArn(const Aws::String &value)
Definition: PresignedUrlConfig.h:80
Aws::IoT::Model::PresignedUrlConfig::PresignedUrlConfig
PresignedUrlConfig()
Aws::IoT::Model::PresignedUrlConfig::WithRoleArn
PresignedUrlConfig & WithRoleArn(const char *value)
Definition: PresignedUrlConfig.h:94
Aws::IoT::Model::PresignedUrlConfig::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: PresignedUrlConfig.h:59
Aws::IoT::Model::PresignedUrlConfig::SetRoleArn
void SetRoleArn(const char *value)
Definition: PresignedUrlConfig.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::PresignedUrlConfig::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: PresignedUrlConfig.h:45
Aws::IoT::Model::PresignedUrlConfig::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: PresignedUrlConfig.h:52
Aws::IoT::Model::PresignedUrlConfig::PresignedUrlConfig
PresignedUrlConfig(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::PresignedUrlConfig::SetExpiresInSec
void SetExpiresInSec(long long value)
Definition: PresignedUrlConfig.h:116
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::PresignedUrlConfig::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: PresignedUrlConfig.h:66
Aws::IoT::Model::PresignedUrlConfig::GetExpiresInSec
long long GetExpiresInSec() const
Definition: PresignedUrlConfig.h:102
Aws::IoT::Model::PresignedUrlConfig::operator=
PresignedUrlConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h