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/backup/Backup_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/DateTime.h> 10 #include <aws/core/utils/memory/stl/AWSVector.h> 11 #include <aws/backup/model/AdvancedBackupSetting.h> 12 #include <utility> 13 14 namespace Aws 15 { 16 template<typename RESULT_TYPE> 17 class AmazonWebServiceResult; 18 19 namespace Utils 20 { 21 namespace Json 22 { 23 class JsonValue; 24 } // namespace Json 25 } // namespace Utils 26 namespace Backup 27 { 28 namespace Model 29 { 30 class AWS_BACKUP_API UpdateBackupPlanResult 31 { 32 public: 33 UpdateBackupPlanResult(); 34 UpdateBackupPlanResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 UpdateBackupPlanResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 36 37 38 /** 39 * <p>Uniquely identifies a backup plan.</p> 40 */ GetBackupPlanId()41 inline const Aws::String& GetBackupPlanId() const{ return m_backupPlanId; } 42 43 /** 44 * <p>Uniquely identifies a backup plan.</p> 45 */ SetBackupPlanId(const Aws::String & value)46 inline void SetBackupPlanId(const Aws::String& value) { m_backupPlanId = value; } 47 48 /** 49 * <p>Uniquely identifies a backup plan.</p> 50 */ SetBackupPlanId(Aws::String && value)51 inline void SetBackupPlanId(Aws::String&& value) { m_backupPlanId = std::move(value); } 52 53 /** 54 * <p>Uniquely identifies a backup plan.</p> 55 */ SetBackupPlanId(const char * value)56 inline void SetBackupPlanId(const char* value) { m_backupPlanId.assign(value); } 57 58 /** 59 * <p>Uniquely identifies a backup plan.</p> 60 */ WithBackupPlanId(const Aws::String & value)61 inline UpdateBackupPlanResult& WithBackupPlanId(const Aws::String& value) { SetBackupPlanId(value); return *this;} 62 63 /** 64 * <p>Uniquely identifies a backup plan.</p> 65 */ WithBackupPlanId(Aws::String && value)66 inline UpdateBackupPlanResult& WithBackupPlanId(Aws::String&& value) { SetBackupPlanId(std::move(value)); return *this;} 67 68 /** 69 * <p>Uniquely identifies a backup plan.</p> 70 */ WithBackupPlanId(const char * value)71 inline UpdateBackupPlanResult& WithBackupPlanId(const char* value) { SetBackupPlanId(value); return *this;} 72 73 74 /** 75 * <p>An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for 76 * example, 77 * <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.</p> 78 */ GetBackupPlanArn()79 inline const Aws::String& GetBackupPlanArn() const{ return m_backupPlanArn; } 80 81 /** 82 * <p>An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for 83 * example, 84 * <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.</p> 85 */ SetBackupPlanArn(const Aws::String & value)86 inline void SetBackupPlanArn(const Aws::String& value) { m_backupPlanArn = value; } 87 88 /** 89 * <p>An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for 90 * example, 91 * <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.</p> 92 */ SetBackupPlanArn(Aws::String && value)93 inline void SetBackupPlanArn(Aws::String&& value) { m_backupPlanArn = std::move(value); } 94 95 /** 96 * <p>An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for 97 * example, 98 * <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.</p> 99 */ SetBackupPlanArn(const char * value)100 inline void SetBackupPlanArn(const char* value) { m_backupPlanArn.assign(value); } 101 102 /** 103 * <p>An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for 104 * example, 105 * <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.</p> 106 */ WithBackupPlanArn(const Aws::String & value)107 inline UpdateBackupPlanResult& WithBackupPlanArn(const Aws::String& value) { SetBackupPlanArn(value); return *this;} 108 109 /** 110 * <p>An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for 111 * example, 112 * <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.</p> 113 */ WithBackupPlanArn(Aws::String && value)114 inline UpdateBackupPlanResult& WithBackupPlanArn(Aws::String&& value) { SetBackupPlanArn(std::move(value)); return *this;} 115 116 /** 117 * <p>An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for 118 * example, 119 * <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.</p> 120 */ WithBackupPlanArn(const char * value)121 inline UpdateBackupPlanResult& WithBackupPlanArn(const char* value) { SetBackupPlanArn(value); return *this;} 122 123 124 /** 125 * <p>The date and time a backup plan is created, in Unix format and Coordinated 126 * Universal Time (UTC). The value of <code>CreationDate</code> is accurate to 127 * milliseconds. For example, the value 1516925490.087 represents Friday, January 128 * 26, 2018 12:11:30.087 AM.</p> 129 */ GetCreationDate()130 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } 131 132 /** 133 * <p>The date and time a backup plan is created, in Unix format and Coordinated 134 * Universal Time (UTC). The value of <code>CreationDate</code> is accurate to 135 * milliseconds. For example, the value 1516925490.087 represents Friday, January 136 * 26, 2018 12:11:30.087 AM.</p> 137 */ SetCreationDate(const Aws::Utils::DateTime & value)138 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } 139 140 /** 141 * <p>The date and time a backup plan is created, in Unix format and Coordinated 142 * Universal Time (UTC). The value of <code>CreationDate</code> is accurate to 143 * milliseconds. For example, the value 1516925490.087 represents Friday, January 144 * 26, 2018 12:11:30.087 AM.</p> 145 */ SetCreationDate(Aws::Utils::DateTime && value)146 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); } 147 148 /** 149 * <p>The date and time a backup plan is created, in Unix format and Coordinated 150 * Universal Time (UTC). The value of <code>CreationDate</code> is accurate to 151 * milliseconds. For example, the value 1516925490.087 represents Friday, January 152 * 26, 2018 12:11:30.087 AM.</p> 153 */ WithCreationDate(const Aws::Utils::DateTime & value)154 inline UpdateBackupPlanResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} 155 156 /** 157 * <p>The date and time a backup plan is created, in Unix format and Coordinated 158 * Universal Time (UTC). The value of <code>CreationDate</code> is accurate to 159 * milliseconds. For example, the value 1516925490.087 represents Friday, January 160 * 26, 2018 12:11:30.087 AM.</p> 161 */ WithCreationDate(Aws::Utils::DateTime && value)162 inline UpdateBackupPlanResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} 163 164 165 /** 166 * <p>Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 167 * 1,024 bytes long. Version Ids cannot be edited.</p> 168 */ GetVersionId()169 inline const Aws::String& GetVersionId() const{ return m_versionId; } 170 171 /** 172 * <p>Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 173 * 1,024 bytes long. Version Ids cannot be edited.</p> 174 */ SetVersionId(const Aws::String & value)175 inline void SetVersionId(const Aws::String& value) { m_versionId = value; } 176 177 /** 178 * <p>Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 179 * 1,024 bytes long. Version Ids cannot be edited.</p> 180 */ SetVersionId(Aws::String && value)181 inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); } 182 183 /** 184 * <p>Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 185 * 1,024 bytes long. Version Ids cannot be edited.</p> 186 */ SetVersionId(const char * value)187 inline void SetVersionId(const char* value) { m_versionId.assign(value); } 188 189 /** 190 * <p>Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 191 * 1,024 bytes long. Version Ids cannot be edited.</p> 192 */ WithVersionId(const Aws::String & value)193 inline UpdateBackupPlanResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} 194 195 /** 196 * <p>Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 197 * 1,024 bytes long. Version Ids cannot be edited.</p> 198 */ WithVersionId(Aws::String && value)199 inline UpdateBackupPlanResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} 200 201 /** 202 * <p>Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 203 * 1,024 bytes long. Version Ids cannot be edited.</p> 204 */ WithVersionId(const char * value)205 inline UpdateBackupPlanResult& WithVersionId(const char* value) { SetVersionId(value); return *this;} 206 207 208 /** 209 * <p>Contains a list of <code>BackupOptions</code> for each resource type.</p> 210 */ GetAdvancedBackupSettings()211 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const{ return m_advancedBackupSettings; } 212 213 /** 214 * <p>Contains a list of <code>BackupOptions</code> for each resource type.</p> 215 */ SetAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting> & value)216 inline void SetAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { m_advancedBackupSettings = value; } 217 218 /** 219 * <p>Contains a list of <code>BackupOptions</code> for each resource type.</p> 220 */ SetAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting> && value)221 inline void SetAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { m_advancedBackupSettings = std::move(value); } 222 223 /** 224 * <p>Contains a list of <code>BackupOptions</code> for each resource type.</p> 225 */ WithAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting> & value)226 inline UpdateBackupPlanResult& WithAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { SetAdvancedBackupSettings(value); return *this;} 227 228 /** 229 * <p>Contains a list of <code>BackupOptions</code> for each resource type.</p> 230 */ WithAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting> && value)231 inline UpdateBackupPlanResult& WithAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { SetAdvancedBackupSettings(std::move(value)); return *this;} 232 233 /** 234 * <p>Contains a list of <code>BackupOptions</code> for each resource type.</p> 235 */ AddAdvancedBackupSettings(const AdvancedBackupSetting & value)236 inline UpdateBackupPlanResult& AddAdvancedBackupSettings(const AdvancedBackupSetting& value) { m_advancedBackupSettings.push_back(value); return *this; } 237 238 /** 239 * <p>Contains a list of <code>BackupOptions</code> for each resource type.</p> 240 */ AddAdvancedBackupSettings(AdvancedBackupSetting && value)241 inline UpdateBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSetting&& value) { m_advancedBackupSettings.push_back(std::move(value)); return *this; } 242 243 private: 244 245 Aws::String m_backupPlanId; 246 247 Aws::String m_backupPlanArn; 248 249 Aws::Utils::DateTime m_creationDate; 250 251 Aws::String m_versionId; 252 253 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings; 254 }; 255 256 } // namespace Model 257 } // namespace Backup 258 } // namespace Aws 259