#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Association {
pub name: ::std::option::Option<::std::string::String>,
pub instance_id: ::std::option::Option<::std::string::String>,
pub association_id: ::std::option::Option<::std::string::String>,
pub association_version: ::std::option::Option<::std::string::String>,
pub document_version: ::std::option::Option<::std::string::String>,
pub targets: ::std::option::Option<::std::vec::Vec<crate::types::Target>>,
pub last_execution_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub overview: ::std::option::Option<crate::types::AssociationOverview>,
pub schedule_expression: ::std::option::Option<::std::string::String>,
pub association_name: ::std::option::Option<::std::string::String>,
pub schedule_offset: ::std::option::Option<i32>,
pub duration: ::std::option::Option<i32>,
pub target_maps:
::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>>,
}
impl Association {
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn instance_id(&self) -> ::std::option::Option<&str> {
self.instance_id.as_deref()
}
pub fn association_id(&self) -> ::std::option::Option<&str> {
self.association_id.as_deref()
}
pub fn association_version(&self) -> ::std::option::Option<&str> {
self.association_version.as_deref()
}
pub fn document_version(&self) -> ::std::option::Option<&str> {
self.document_version.as_deref()
}
pub fn targets(&self) -> &[crate::types::Target] {
self.targets.as_deref().unwrap_or_default()
}
pub fn last_execution_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_execution_date.as_ref()
}
pub fn overview(&self) -> ::std::option::Option<&crate::types::AssociationOverview> {
self.overview.as_ref()
}
pub fn schedule_expression(&self) -> ::std::option::Option<&str> {
self.schedule_expression.as_deref()
}
pub fn association_name(&self) -> ::std::option::Option<&str> {
self.association_name.as_deref()
}
pub fn schedule_offset(&self) -> ::std::option::Option<i32> {
self.schedule_offset
}
pub fn duration(&self) -> ::std::option::Option<i32> {
self.duration
}
pub fn target_maps(&self) -> &[::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>] {
self.target_maps.as_deref().unwrap_or_default()
}
}
static ASSOCIATION_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$Name", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::String,
"Name",
0,
);
static ASSOCIATION_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$InstanceId", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::String,
"InstanceId",
1,
);
static ASSOCIATION_MEMBER_ASSOCIATION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$AssociationId", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::String,
"AssociationId",
2,
);
static ASSOCIATION_MEMBER_ASSOCIATION_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$AssociationVersion", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::String,
"AssociationVersion",
3,
);
static ASSOCIATION_MEMBER_DOCUMENT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$DocumentVersion", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::String,
"DocumentVersion",
4,
);
static ASSOCIATION_MEMBER_TARGETS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Targets$member", "com.amazonaws.ssm", "Targets"),
::aws_smithy_schema::ShapeType::Structure,
"member",
0,
);
static ASSOCIATION_MEMBER_TARGETS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$Targets", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::List,
"Targets",
5,
)
.with_list_member(&ASSOCIATION_MEMBER_TARGETS_MEMBER);
static ASSOCIATION_MEMBER_LAST_EXECUTION_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$LastExecutionDate", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::Timestamp,
"LastExecutionDate",
6,
);
static ASSOCIATION_MEMBER_OVERVIEW: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$Overview", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::Structure,
"Overview",
7,
);
static ASSOCIATION_MEMBER_SCHEDULE_EXPRESSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$ScheduleExpression", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::String,
"ScheduleExpression",
8,
);
static ASSOCIATION_MEMBER_ASSOCIATION_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$AssociationName", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::String,
"AssociationName",
9,
);
static ASSOCIATION_MEMBER_SCHEDULE_OFFSET: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$ScheduleOffset", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::Integer,
"ScheduleOffset",
10,
);
static ASSOCIATION_MEMBER_DURATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$Duration", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::Integer,
"Duration",
11,
);
static ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER_VALUE_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TargetMapValueList$member", "com.amazonaws.ssm", "TargetMapValueList"),
::aws_smithy_schema::ShapeType::String,
"member",
0,
);
static ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER_KEY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TargetMap$key", "com.amazonaws.ssm", "TargetMap"),
::aws_smithy_schema::ShapeType::String,
"key",
0,
);
static ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TargetMap$value", "com.amazonaws.ssm", "TargetMap"),
::aws_smithy_schema::ShapeType::List,
"value",
1,
)
.with_list_member(&ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER_VALUE_MEMBER);
static ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TargetMaps$member", "com.amazonaws.ssm", "TargetMaps"),
::aws_smithy_schema::ShapeType::Map,
"member",
0,
)
.with_map_members(&ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER_KEY, &ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER_VALUE);
static ASSOCIATION_MEMBER_TARGET_MAPS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association$TargetMaps", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::List,
"TargetMaps",
12,
)
.with_list_member(&ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER);
static ASSOCIATION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Association", "com.amazonaws.ssm", "Association"),
::aws_smithy_schema::ShapeType::Structure,
&[
&ASSOCIATION_MEMBER_NAME,
&ASSOCIATION_MEMBER_INSTANCE_ID,
&ASSOCIATION_MEMBER_ASSOCIATION_ID,
&ASSOCIATION_MEMBER_ASSOCIATION_VERSION,
&ASSOCIATION_MEMBER_DOCUMENT_VERSION,
&ASSOCIATION_MEMBER_TARGETS,
&ASSOCIATION_MEMBER_LAST_EXECUTION_DATE,
&ASSOCIATION_MEMBER_OVERVIEW,
&ASSOCIATION_MEMBER_SCHEDULE_EXPRESSION,
&ASSOCIATION_MEMBER_ASSOCIATION_NAME,
&ASSOCIATION_MEMBER_SCHEDULE_OFFSET,
&ASSOCIATION_MEMBER_DURATION,
&ASSOCIATION_MEMBER_TARGET_MAPS,
],
);
impl Association {
pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &ASSOCIATION_SCHEMA;
}
impl ::aws_smithy_schema::serde::SerializableStruct for Association {
fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
Self::SCHEMA
}
#[allow(unused_variables, clippy::diverging_sub_expression)]
fn serialize_members(
&self,
ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
if let Some(ref val) = self.name {
ser.write_string(&ASSOCIATION_MEMBER_NAME, val)?;
}
if let Some(ref val) = self.instance_id {
ser.write_string(&ASSOCIATION_MEMBER_INSTANCE_ID, val)?;
}
if let Some(ref val) = self.association_id {
ser.write_string(&ASSOCIATION_MEMBER_ASSOCIATION_ID, val)?;
}
if let Some(ref val) = self.association_version {
ser.write_string(&ASSOCIATION_MEMBER_ASSOCIATION_VERSION, val)?;
}
if let Some(ref val) = self.document_version {
ser.write_string(&ASSOCIATION_MEMBER_DOCUMENT_VERSION, val)?;
}
if let Some(ref val) = self.targets {
ser.write_list(
&ASSOCIATION_MEMBER_TARGETS,
&|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
for item in val {
ser.write_struct(crate::types::Target::SCHEMA, item)?;
}
Ok(())
},
)?;
}
if let Some(ref val) = self.last_execution_date {
ser.write_timestamp(&ASSOCIATION_MEMBER_LAST_EXECUTION_DATE, val)?;
}
if let Some(ref val) = self.overview {
ser.write_struct(&ASSOCIATION_MEMBER_OVERVIEW, val)?;
}
if let Some(ref val) = self.schedule_expression {
ser.write_string(&ASSOCIATION_MEMBER_SCHEDULE_EXPRESSION, val)?;
}
if let Some(ref val) = self.association_name {
ser.write_string(&ASSOCIATION_MEMBER_ASSOCIATION_NAME, val)?;
}
if let Some(ref val) = self.schedule_offset {
ser.write_integer(&ASSOCIATION_MEMBER_SCHEDULE_OFFSET, *val)?;
}
if let Some(ref val) = self.duration {
ser.write_integer(&ASSOCIATION_MEMBER_DURATION, *val)?;
}
if let Some(ref val) = self.target_maps {
ser.write_list(
&ASSOCIATION_MEMBER_TARGET_MAPS,
&|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
for item in val {
ser.write_map(
&ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER,
&|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
for (key, value) in item {
ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
ser.write_list(
&ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER_VALUE,
&|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
for item in value {
ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
}
Ok(())
},
)?;
}
Ok(())
},
)?;
}
Ok(())
},
)?;
}
Ok(())
}
}
impl crate::types::builders::AssociationBuilder {
#[allow(
unused_variables,
unreachable_code,
clippy::single_match,
clippy::match_single_binding,
clippy::diverging_sub_expression
)]
pub(crate) fn deserialize_members(
&mut self,
deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
deserializer.read_struct(&ASSOCIATION_SCHEMA, &mut |member, deser| {
match member.member_index() {
Some(0) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.name = Some(deser.read_string(member)?);
}
}
Some(1) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.instance_id = Some(deser.read_string(member)?);
}
}
Some(2) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.association_id = Some(deser.read_string(member)?);
}
}
Some(3) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.association_version = Some(deser.read_string(member)?);
}
}
Some(4) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.document_version = Some(deser.read_string(member)?);
}
}
Some(5) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.targets = Some({
let mut container = Vec::new();
deser.read_list(member, &mut |deser| {
container.push(crate::types::Target::deserialize(deser)?);
Ok(())
})?;
container
});
}
}
Some(6) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.last_execution_date = Some(deser.read_timestamp(member)?);
}
}
Some(7) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.overview = Some(crate::types::AssociationOverview::deserialize(deser)?);
}
}
Some(8) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.schedule_expression = Some(deser.read_string(member)?);
}
}
Some(9) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.association_name = Some(deser.read_string(member)?);
}
}
Some(10) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.schedule_offset = Some(deser.read_integer(member)?);
}
}
Some(11) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.duration = Some(deser.read_integer(member)?);
}
}
Some(12) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.target_maps = Some({
let mut container = Vec::new();
deser.read_list(member, &mut |deser| {
container.push({
let mut map = ::std::collections::HashMap::new();
deser.read_map(&ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER, &mut |key, deser| {
let value = {
let mut list = Vec::new();
deser.read_list(&ASSOCIATION_MEMBER_TARGET_MAPS_MEMBER_VALUE, &mut |deser| {
list.push(deser.read_string(&::aws_smithy_schema::prelude::STRING)?);
Ok(())
})?;
list
};
map.insert(key, value);
Ok(())
})?;
map
});
Ok(())
})?;
container
});
}
}
_ => {}
}
Ok(())
})
}
}
impl Association {
pub fn deserialize(
deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
let mut builder = Self::builder();
builder.deserialize_members(deserializer)?;
Ok(builder.build())
}
}
impl Association {
pub fn builder() -> crate::types::builders::AssociationBuilder {
crate::types::builders::AssociationBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct AssociationBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) instance_id: ::std::option::Option<::std::string::String>,
pub(crate) association_id: ::std::option::Option<::std::string::String>,
pub(crate) association_version: ::std::option::Option<::std::string::String>,
pub(crate) document_version: ::std::option::Option<::std::string::String>,
pub(crate) targets: ::std::option::Option<::std::vec::Vec<crate::types::Target>>,
pub(crate) last_execution_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) overview: ::std::option::Option<crate::types::AssociationOverview>,
pub(crate) schedule_expression: ::std::option::Option<::std::string::String>,
pub(crate) association_name: ::std::option::Option<::std::string::String>,
pub(crate) schedule_offset: ::std::option::Option<i32>,
pub(crate) duration: ::std::option::Option<i32>,
pub(crate) target_maps:
::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>>,
}
impl AssociationBuilder {
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_id = input;
self
}
pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_id
}
pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.association_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.association_id = input;
self
}
pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
&self.association_id
}
pub fn association_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.association_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_association_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.association_version = input;
self
}
pub fn get_association_version(&self) -> &::std::option::Option<::std::string::String> {
&self.association_version
}
pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.document_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.document_version = input;
self
}
pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
&self.document_version
}
pub fn targets(mut self, input: crate::types::Target) -> Self {
let mut v = self.targets.unwrap_or_default();
v.push(input);
self.targets = ::std::option::Option::Some(v);
self
}
pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Target>>) -> Self {
self.targets = input;
self
}
pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Target>> {
&self.targets
}
pub fn last_execution_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_execution_date = ::std::option::Option::Some(input);
self
}
pub fn set_last_execution_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_execution_date = input;
self
}
pub fn get_last_execution_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_execution_date
}
pub fn overview(mut self, input: crate::types::AssociationOverview) -> Self {
self.overview = ::std::option::Option::Some(input);
self
}
pub fn set_overview(mut self, input: ::std::option::Option<crate::types::AssociationOverview>) -> Self {
self.overview = input;
self
}
pub fn get_overview(&self) -> &::std::option::Option<crate::types::AssociationOverview> {
&self.overview
}
pub fn schedule_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schedule_expression = ::std::option::Option::Some(input.into());
self
}
pub fn set_schedule_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schedule_expression = input;
self
}
pub fn get_schedule_expression(&self) -> &::std::option::Option<::std::string::String> {
&self.schedule_expression
}
pub fn association_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.association_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_association_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.association_name = input;
self
}
pub fn get_association_name(&self) -> &::std::option::Option<::std::string::String> {
&self.association_name
}
pub fn schedule_offset(mut self, input: i32) -> Self {
self.schedule_offset = ::std::option::Option::Some(input);
self
}
pub fn set_schedule_offset(mut self, input: ::std::option::Option<i32>) -> Self {
self.schedule_offset = input;
self
}
pub fn get_schedule_offset(&self) -> &::std::option::Option<i32> {
&self.schedule_offset
}
pub fn duration(mut self, input: i32) -> Self {
self.duration = ::std::option::Option::Some(input);
self
}
pub fn set_duration(mut self, input: ::std::option::Option<i32>) -> Self {
self.duration = input;
self
}
pub fn get_duration(&self) -> &::std::option::Option<i32> {
&self.duration
}
pub fn target_maps(mut self, input: ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>) -> Self {
let mut v = self.target_maps.unwrap_or_default();
v.push(input);
self.target_maps = ::std::option::Option::Some(v);
self
}
pub fn set_target_maps(
mut self,
input: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>>,
) -> Self {
self.target_maps = input;
self
}
pub fn get_target_maps(
&self,
) -> &::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>> {
&self.target_maps
}
pub fn build(self) -> crate::types::Association {
crate::types::Association {
name: self.name,
instance_id: self.instance_id,
association_id: self.association_id,
association_version: self.association_version,
document_version: self.document_version,
targets: self.targets,
last_execution_date: self.last_execution_date,
overview: self.overview,
schedule_expression: self.schedule_expression,
association_name: self.association_name,
schedule_offset: self.schedule_offset,
duration: self.duration,
target_maps: self.target_maps,
}
}
}