7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/ApplicationAssociatedResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/workspaces/model/AssociationState.h>
12#include <aws/workspaces/model/AssociationStateReason.h>
51 template<
typename ApplicationIdT = Aws::String>
52 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet =
true; m_applicationId = std::forward<ApplicationIdT>(value); }
53 template<
typename ApplicationIdT = Aws::String>
63 template<
typename AssociatedResourceIdT = Aws::String>
64 void SetAssociatedResourceId(AssociatedResourceIdT&& value) { m_associatedResourceIdHasBeenSet =
true; m_associatedResourceId = std::forward<AssociatedResourceIdT>(value); }
65 template<
typename AssociatedResourceIdT = Aws::String>
85 template<
typename CreatedT = Aws::Utils::DateTime>
86 void SetCreated(CreatedT&& value) { m_createdHasBeenSet =
true; m_created = std::forward<CreatedT>(value); }
87 template<
typename CreatedT = Aws::Utils::DateTime>
97 template<
typename LastUpdatedTimeT = Aws::Utils::DateTime>
98 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet =
true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
99 template<
typename LastUpdatedTimeT = Aws::Utils::DateTime>
119 template<
typename StateReasonT = AssociationStateReason>
120 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet =
true; m_stateReason = std::forward<StateReasonT>(value); }
121 template<
typename StateReasonT = AssociationStateReason>
127 bool m_applicationIdHasBeenSet =
false;
130 bool m_associatedResourceIdHasBeenSet =
false;
133 bool m_associatedResourceTypeHasBeenSet =
false;
136 bool m_createdHasBeenSet =
false;
139 bool m_lastUpdatedTimeHasBeenSet =
false;
142 bool m_stateHasBeenSet =
false;
144 AssociationStateReason m_stateReason;
145 bool m_stateReasonHasBeenSet =
false;
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
bool AssociatedResourceTypeHasBeenSet() const
ApplicationResourceAssociation & WithStateReason(StateReasonT &&value)
void SetAssociatedResourceType(ApplicationAssociatedResourceType value)
bool LastUpdatedTimeHasBeenSet() const
ApplicationResourceAssociation & WithCreated(CreatedT &&value)
const Aws::String & GetApplicationId() const
void SetApplicationId(ApplicationIdT &&value)
ApplicationResourceAssociation & WithAssociatedResourceType(ApplicationAssociatedResourceType value)
bool StateReasonHasBeenSet() const
const Aws::String & GetAssociatedResourceId() const
AWS_WORKSPACES_API ApplicationResourceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API ApplicationResourceAssociation(Aws::Utils::Json::JsonView jsonValue)
bool ApplicationIdHasBeenSet() const
AWS_WORKSPACES_API ApplicationResourceAssociation()=default
bool StateHasBeenSet() const
void SetStateReason(StateReasonT &&value)
const Aws::Utils::DateTime & GetCreated() const
ApplicationResourceAssociation & WithApplicationId(ApplicationIdT &&value)
ApplicationResourceAssociation & WithState(AssociationState value)
bool AssociatedResourceIdHasBeenSet() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetState(AssociationState value)
AssociationState GetState() const
ApplicationAssociatedResourceType GetAssociatedResourceType() const
bool CreatedHasBeenSet() const
void SetAssociatedResourceId(AssociatedResourceIdT &&value)
const AssociationStateReason & GetStateReason() const
void SetCreated(CreatedT &&value)
ApplicationResourceAssociation & WithAssociatedResourceId(AssociatedResourceIdT &&value)
ApplicationResourceAssociation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
ApplicationAssociatedResourceType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue