1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/greengrass/Greengrass_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 } // namespace Json 22 } // namespace Utils 23 namespace Greengrass 24 { 25 namespace Model 26 { 27 class AWS_GREENGRASS_API CreateGroupResult 28 { 29 public: 30 CreateGroupResult(); 31 CreateGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 CreateGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * The ARN of the definition. 37 */ GetArn()38 inline const Aws::String& GetArn() const{ return m_arn; } 39 40 /** 41 * The ARN of the definition. 42 */ SetArn(const Aws::String & value)43 inline void SetArn(const Aws::String& value) { m_arn = value; } 44 45 /** 46 * The ARN of the definition. 47 */ SetArn(Aws::String && value)48 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } 49 50 /** 51 * The ARN of the definition. 52 */ SetArn(const char * value)53 inline void SetArn(const char* value) { m_arn.assign(value); } 54 55 /** 56 * The ARN of the definition. 57 */ WithArn(const Aws::String & value)58 inline CreateGroupResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} 59 60 /** 61 * The ARN of the definition. 62 */ WithArn(Aws::String && value)63 inline CreateGroupResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} 64 65 /** 66 * The ARN of the definition. 67 */ WithArn(const char * value)68 inline CreateGroupResult& WithArn(const char* value) { SetArn(value); return *this;} 69 70 71 /** 72 * The time, in milliseconds since the epoch, when the definition was created. 73 */ GetCreationTimestamp()74 inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; } 75 76 /** 77 * The time, in milliseconds since the epoch, when the definition was created. 78 */ SetCreationTimestamp(const Aws::String & value)79 inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; } 80 81 /** 82 * The time, in milliseconds since the epoch, when the definition was created. 83 */ SetCreationTimestamp(Aws::String && value)84 inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); } 85 86 /** 87 * The time, in milliseconds since the epoch, when the definition was created. 88 */ SetCreationTimestamp(const char * value)89 inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); } 90 91 /** 92 * The time, in milliseconds since the epoch, when the definition was created. 93 */ WithCreationTimestamp(const Aws::String & value)94 inline CreateGroupResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;} 95 96 /** 97 * The time, in milliseconds since the epoch, when the definition was created. 98 */ WithCreationTimestamp(Aws::String && value)99 inline CreateGroupResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;} 100 101 /** 102 * The time, in milliseconds since the epoch, when the definition was created. 103 */ WithCreationTimestamp(const char * value)104 inline CreateGroupResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;} 105 106 107 /** 108 * The ID of the definition. 109 */ GetId()110 inline const Aws::String& GetId() const{ return m_id; } 111 112 /** 113 * The ID of the definition. 114 */ SetId(const Aws::String & value)115 inline void SetId(const Aws::String& value) { m_id = value; } 116 117 /** 118 * The ID of the definition. 119 */ SetId(Aws::String && value)120 inline void SetId(Aws::String&& value) { m_id = std::move(value); } 121 122 /** 123 * The ID of the definition. 124 */ SetId(const char * value)125 inline void SetId(const char* value) { m_id.assign(value); } 126 127 /** 128 * The ID of the definition. 129 */ WithId(const Aws::String & value)130 inline CreateGroupResult& WithId(const Aws::String& value) { SetId(value); return *this;} 131 132 /** 133 * The ID of the definition. 134 */ WithId(Aws::String && value)135 inline CreateGroupResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} 136 137 /** 138 * The ID of the definition. 139 */ WithId(const char * value)140 inline CreateGroupResult& WithId(const char* value) { SetId(value); return *this;} 141 142 143 /** 144 * The time, in milliseconds since the epoch, when the definition was last updated. 145 */ GetLastUpdatedTimestamp()146 inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } 147 148 /** 149 * The time, in milliseconds since the epoch, when the definition was last updated. 150 */ SetLastUpdatedTimestamp(const Aws::String & value)151 inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; } 152 153 /** 154 * The time, in milliseconds since the epoch, when the definition was last updated. 155 */ SetLastUpdatedTimestamp(Aws::String && value)156 inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); } 157 158 /** 159 * The time, in milliseconds since the epoch, when the definition was last updated. 160 */ SetLastUpdatedTimestamp(const char * value)161 inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); } 162 163 /** 164 * The time, in milliseconds since the epoch, when the definition was last updated. 165 */ WithLastUpdatedTimestamp(const Aws::String & value)166 inline CreateGroupResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;} 167 168 /** 169 * The time, in milliseconds since the epoch, when the definition was last updated. 170 */ WithLastUpdatedTimestamp(Aws::String && value)171 inline CreateGroupResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} 172 173 /** 174 * The time, in milliseconds since the epoch, when the definition was last updated. 175 */ WithLastUpdatedTimestamp(const char * value)176 inline CreateGroupResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;} 177 178 179 /** 180 * The ID of the latest version associated with the definition. 181 */ GetLatestVersion()182 inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; } 183 184 /** 185 * The ID of the latest version associated with the definition. 186 */ SetLatestVersion(const Aws::String & value)187 inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; } 188 189 /** 190 * The ID of the latest version associated with the definition. 191 */ SetLatestVersion(Aws::String && value)192 inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); } 193 194 /** 195 * The ID of the latest version associated with the definition. 196 */ SetLatestVersion(const char * value)197 inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); } 198 199 /** 200 * The ID of the latest version associated with the definition. 201 */ WithLatestVersion(const Aws::String & value)202 inline CreateGroupResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;} 203 204 /** 205 * The ID of the latest version associated with the definition. 206 */ WithLatestVersion(Aws::String && value)207 inline CreateGroupResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;} 208 209 /** 210 * The ID of the latest version associated with the definition. 211 */ WithLatestVersion(const char * value)212 inline CreateGroupResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;} 213 214 215 /** 216 * The ARN of the latest version associated with the definition. 217 */ GetLatestVersionArn()218 inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; } 219 220 /** 221 * The ARN of the latest version associated with the definition. 222 */ SetLatestVersionArn(const Aws::String & value)223 inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; } 224 225 /** 226 * The ARN of the latest version associated with the definition. 227 */ SetLatestVersionArn(Aws::String && value)228 inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); } 229 230 /** 231 * The ARN of the latest version associated with the definition. 232 */ SetLatestVersionArn(const char * value)233 inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); } 234 235 /** 236 * The ARN of the latest version associated with the definition. 237 */ WithLatestVersionArn(const Aws::String & value)238 inline CreateGroupResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;} 239 240 /** 241 * The ARN of the latest version associated with the definition. 242 */ WithLatestVersionArn(Aws::String && value)243 inline CreateGroupResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;} 244 245 /** 246 * The ARN of the latest version associated with the definition. 247 */ WithLatestVersionArn(const char * value)248 inline CreateGroupResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;} 249 250 251 /** 252 * The name of the definition. 253 */ GetName()254 inline const Aws::String& GetName() const{ return m_name; } 255 256 /** 257 * The name of the definition. 258 */ SetName(const Aws::String & value)259 inline void SetName(const Aws::String& value) { m_name = value; } 260 261 /** 262 * The name of the definition. 263 */ SetName(Aws::String && value)264 inline void SetName(Aws::String&& value) { m_name = std::move(value); } 265 266 /** 267 * The name of the definition. 268 */ SetName(const char * value)269 inline void SetName(const char* value) { m_name.assign(value); } 270 271 /** 272 * The name of the definition. 273 */ WithName(const Aws::String & value)274 inline CreateGroupResult& WithName(const Aws::String& value) { SetName(value); return *this;} 275 276 /** 277 * The name of the definition. 278 */ WithName(Aws::String && value)279 inline CreateGroupResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 280 281 /** 282 * The name of the definition. 283 */ WithName(const char * value)284 inline CreateGroupResult& WithName(const char* value) { SetName(value); return *this;} 285 286 private: 287 288 Aws::String m_arn; 289 290 Aws::String m_creationTimestamp; 291 292 Aws::String m_id; 293 294 Aws::String m_lastUpdatedTimestamp; 295 296 Aws::String m_latestVersion; 297 298 Aws::String m_latestVersionArn; 299 300 Aws::String m_name; 301 }; 302 303 } // namespace Model 304 } // namespace Greengrass 305 } // namespace Aws 306