7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/AccessRules.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/lightsail/model/ResourceLocation.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/BucketState.h>
14#include <aws/lightsail/model/BucketAccessLogConfig.h>
15#include <aws/lightsail/model/Tag.h>
16#include <aws/lightsail/model/ResourceReceivingAccess.h>
56 inline void SetResourceType(
const char* value) { m_resourceTypeHasBeenSet =
true; m_resourceType.assign(value); }
81 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
82 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
100 inline void SetBundleId(
const char* value) { m_bundleIdHasBeenSet =
true; m_bundleId.assign(value); }
126 inline void SetUrl(
const char* value) { m_urlHasBeenSet =
true; m_url.assign(value); }
153 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
169 inline void SetSupportCode(
const char* value) { m_supportCodeHasBeenSet =
true; m_supportCode.assign(value); }
187 inline Bucket&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
188 inline Bucket&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
204 inline void SetObjectVersioning(
const char* value) { m_objectVersioningHasBeenSet =
true; m_objectVersioning.assign(value); }
220 inline void SetAbleToUpdateBundle(
bool value) { m_ableToUpdateBundleHasBeenSet =
true; m_ableToUpdateBundle = value; }
283 bool m_resourceTypeHasBeenSet =
false;
286 bool m_accessRulesHasBeenSet =
false;
289 bool m_arnHasBeenSet =
false;
292 bool m_bundleIdHasBeenSet =
false;
295 bool m_createdAtHasBeenSet =
false;
298 bool m_urlHasBeenSet =
false;
301 bool m_locationHasBeenSet =
false;
304 bool m_nameHasBeenSet =
false;
307 bool m_supportCodeHasBeenSet =
false;
310 bool m_tagsHasBeenSet =
false;
313 bool m_objectVersioningHasBeenSet =
false;
315 bool m_ableToUpdateBundle;
316 bool m_ableToUpdateBundleHasBeenSet =
false;
319 bool m_readonlyAccessAccountsHasBeenSet =
false;
322 bool m_resourcesReceivingAccessHasBeenSet =
false;
325 bool m_stateHasBeenSet =
false;
328 bool m_accessLogConfigHasBeenSet =
false;
Bucket & WithState(const BucketState &value)
bool TagsHasBeenSet() const
void SetResourcesReceivingAccess(const Aws::Vector< ResourceReceivingAccess > &value)
void SetSupportCode(const Aws::String &value)
void SetLocation(ResourceLocation &&value)
Bucket & WithSupportCode(const Aws::String &value)
void SetAccessLogConfig(BucketAccessLogConfig &&value)
void SetAbleToUpdateBundle(bool value)
Bucket & AddReadonlyAccessAccounts(Aws::String &&value)
Bucket & WithResourcesReceivingAccess(Aws::Vector< ResourceReceivingAccess > &&value)
const Aws::Vector< Tag > & GetTags() const
void SetBundleId(Aws::String &&value)
void SetName(Aws::String &&value)
Bucket & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetResourceType(Aws::String &&value)
void SetUrl(const char *value)
bool LocationHasBeenSet() const
AWS_LIGHTSAIL_API Bucket(Aws::Utils::Json::JsonView jsonValue)
Bucket & WithObjectVersioning(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Bucket & WithSupportCode(Aws::String &&value)
Bucket & WithTags(const Aws::Vector< Tag > &value)
const Aws::Utils::DateTime & GetCreatedAt() const
Bucket & WithResourceType(const char *value)
void SetObjectVersioning(const Aws::String &value)
bool ArnHasBeenSet() const
bool ReadonlyAccessAccountsHasBeenSet() const
Bucket & WithUrl(const Aws::String &value)
const Aws::String & GetSupportCode() const
void SetArn(Aws::String &&value)
bool AccessLogConfigHasBeenSet() const
Bucket & WithAccessRules(const AccessRules &value)
const Aws::String & GetResourceType() const
void SetTags(const Aws::Vector< Tag > &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetReadonlyAccessAccounts(const Aws::Vector< Aws::String > &value)
Bucket & WithBundleId(Aws::String &&value)
bool CreatedAtHasBeenSet() const
bool AbleToUpdateBundleHasBeenSet() const
Bucket & WithName(Aws::String &&value)
Bucket & WithName(const Aws::String &value)
Bucket & WithArn(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetUrl(const Aws::String &value)
Bucket & WithResourceType(Aws::String &&value)
void SetAccessRules(const AccessRules &value)
Bucket & WithAccessLogConfig(BucketAccessLogConfig &&value)
AWS_LIGHTSAIL_API Bucket()
void SetName(const char *value)
void SetObjectVersioning(Aws::String &&value)
Bucket & AddTags(const Tag &value)
const BucketState & GetState() const
Bucket & WithUrl(Aws::String &&value)
Bucket & WithObjectVersioning(const char *value)
void SetUrl(Aws::String &&value)
Bucket & AddReadonlyAccessAccounts(const Aws::String &value)
void SetResourceType(const Aws::String &value)
const Aws::String & GetName() const
void SetTags(Aws::Vector< Tag > &&value)
void SetAccessLogConfig(const BucketAccessLogConfig &value)
Bucket & WithObjectVersioning(const Aws::String &value)
const Aws::String & GetObjectVersioning() const
void SetArn(const char *value)
Bucket & WithTags(Aws::Vector< Tag > &&value)
void SetAccessRules(AccessRules &&value)
void SetBundleId(const char *value)
bool StateHasBeenSet() const
void SetReadonlyAccessAccounts(Aws::Vector< Aws::String > &&value)
void SetName(const Aws::String &value)
void SetSupportCode(Aws::String &&value)
Bucket & WithBundleId(const Aws::String &value)
Bucket & AddResourcesReceivingAccess(ResourceReceivingAccess &&value)
Bucket & WithLocation(const ResourceLocation &value)
bool ResourcesReceivingAccessHasBeenSet() const
void SetResourceType(const char *value)
Bucket & WithArn(Aws::String &&value)
Bucket & WithResourceType(const Aws::String &value)
const Aws::String & GetArn() const
bool BundleIdHasBeenSet() const
void SetSupportCode(const char *value)
bool ResourceTypeHasBeenSet() const
AWS_LIGHTSAIL_API Bucket & operator=(Aws::Utils::Json::JsonView jsonValue)
Bucket & AddResourcesReceivingAccess(const ResourceReceivingAccess &value)
void SetArn(const Aws::String &value)
Bucket & WithArn(const char *value)
bool SupportCodeHasBeenSet() const
const Aws::String & GetUrl() const
bool UrlHasBeenSet() const
const Aws::String & GetBundleId() const
void SetLocation(const ResourceLocation &value)
Bucket & WithCreatedAt(Aws::Utils::DateTime &&value)
Bucket & WithResourcesReceivingAccess(const Aws::Vector< ResourceReceivingAccess > &value)
const Aws::Vector< ResourceReceivingAccess > & GetResourcesReceivingAccess() const
Bucket & WithReadonlyAccessAccounts(const Aws::Vector< Aws::String > &value)
void SetBundleId(const Aws::String &value)
Bucket & AddReadonlyAccessAccounts(const char *value)
const Aws::Vector< Aws::String > & GetReadonlyAccessAccounts() const
const ResourceLocation & GetLocation() const
bool NameHasBeenSet() const
Bucket & WithAbleToUpdateBundle(bool value)
Bucket & AddTags(Tag &&value)
bool ObjectVersioningHasBeenSet() const
const AccessRules & GetAccessRules() const
Bucket & WithAccessRules(AccessRules &&value)
void SetObjectVersioning(const char *value)
void SetResourcesReceivingAccess(Aws::Vector< ResourceReceivingAccess > &&value)
void SetState(const BucketState &value)
const BucketAccessLogConfig & GetAccessLogConfig() const
Bucket & WithBundleId(const char *value)
Bucket & WithReadonlyAccessAccounts(Aws::Vector< Aws::String > &&value)
bool AccessRulesHasBeenSet() const
Bucket & WithAccessLogConfig(const BucketAccessLogConfig &value)
Bucket & WithLocation(ResourceLocation &&value)
Bucket & WithUrl(const char *value)
Bucket & WithState(BucketState &&value)
bool GetAbleToUpdateBundle() const
Bucket & WithSupportCode(const char *value)
Bucket & WithName(const char *value)
void SetState(BucketState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue