#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GroupQuery {
pub group_name: std::option::Option<std::string::String>,
pub resource_query: std::option::Option<crate::model::ResourceQuery>,
}
impl std::fmt::Debug for GroupQuery {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GroupQuery");
formatter.field("group_name", &self.group_name);
formatter.field("resource_query", &self.resource_query);
formatter.finish()
}
}
pub mod group_query {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) group_name: std::option::Option<std::string::String>,
pub(crate) resource_query: std::option::Option<crate::model::ResourceQuery>,
}
impl Builder {
pub fn group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.group_name = Some(input.into());
self
}
pub fn set_group_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.group_name = input;
self
}
pub fn resource_query(mut self, input: crate::model::ResourceQuery) -> Self {
self.resource_query = Some(input);
self
}
pub fn set_resource_query(
mut self,
input: std::option::Option<crate::model::ResourceQuery>,
) -> Self {
self.resource_query = input;
self
}
pub fn build(self) -> crate::model::GroupQuery {
crate::model::GroupQuery {
group_name: self.group_name,
resource_query: self.resource_query,
}
}
}
}
impl GroupQuery {
pub fn builder() -> crate::model::group_query::Builder {
crate::model::group_query::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceQuery {
pub r#type: std::option::Option<crate::model::QueryType>,
pub query: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceQuery {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceQuery");
formatter.field("r#type", &self.r#type);
formatter.field("query", &self.query);
formatter.finish()
}
}
pub mod resource_query {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) r#type: std::option::Option<crate::model::QueryType>,
pub(crate) query: std::option::Option<std::string::String>,
}
impl Builder {
pub fn r#type(mut self, input: crate::model::QueryType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(mut self, input: std::option::Option<crate::model::QueryType>) -> Self {
self.r#type = input;
self
}
pub fn query(mut self, input: impl Into<std::string::String>) -> Self {
self.query = Some(input.into());
self
}
pub fn set_query(mut self, input: std::option::Option<std::string::String>) -> Self {
self.query = input;
self
}
pub fn build(self) -> crate::model::ResourceQuery {
crate::model::ResourceQuery {
r#type: self.r#type,
query: self.query,
}
}
}
}
impl ResourceQuery {
pub fn builder() -> crate::model::resource_query::Builder {
crate::model::resource_query::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum QueryType {
#[allow(missing_docs)] CloudformationStack10,
#[allow(missing_docs)] TagFilters10,
Unknown(String),
}
impl std::convert::From<&str> for QueryType {
fn from(s: &str) -> Self {
match s {
"CLOUDFORMATION_STACK_1_0" => QueryType::CloudformationStack10,
"TAG_FILTERS_1_0" => QueryType::TagFilters10,
other => QueryType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for QueryType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(QueryType::from(s))
}
}
impl QueryType {
pub fn as_str(&self) -> &str {
match self {
QueryType::CloudformationStack10 => "CLOUDFORMATION_STACK_1_0",
QueryType::TagFilters10 => "TAG_FILTERS_1_0",
QueryType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["CLOUDFORMATION_STACK_1_0", "TAG_FILTERS_1_0"]
}
}
impl AsRef<str> for QueryType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Group {
pub group_arn: std::option::Option<std::string::String>,
pub name: std::option::Option<std::string::String>,
pub description: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for Group {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Group");
formatter.field("group_arn", &self.group_arn);
formatter.field("name", &self.name);
formatter.field("description", &self.description);
formatter.finish()
}
}
pub mod group {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) group_arn: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
}
impl Builder {
pub fn group_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.group_arn = Some(input.into());
self
}
pub fn set_group_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.group_arn = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn build(self) -> crate::model::Group {
crate::model::Group {
group_arn: self.group_arn,
name: self.name,
description: self.description,
}
}
}
}
impl Group {
pub fn builder() -> crate::model::group::Builder {
crate::model::group::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PendingResource {
pub resource_arn: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for PendingResource {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PendingResource");
formatter.field("resource_arn", &self.resource_arn);
formatter.finish()
}
}
pub mod pending_resource {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) resource_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_arn = Some(input.into());
self
}
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource_arn = input;
self
}
pub fn build(self) -> crate::model::PendingResource {
crate::model::PendingResource {
resource_arn: self.resource_arn,
}
}
}
}
impl PendingResource {
pub fn builder() -> crate::model::pending_resource::Builder {
crate::model::pending_resource::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FailedResource {
pub resource_arn: std::option::Option<std::string::String>,
pub error_message: std::option::Option<std::string::String>,
pub error_code: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FailedResource {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FailedResource");
formatter.field("resource_arn", &self.resource_arn);
formatter.field("error_message", &self.error_message);
formatter.field("error_code", &self.error_code);
formatter.finish()
}
}
pub mod failed_resource {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) resource_arn: std::option::Option<std::string::String>,
pub(crate) error_message: std::option::Option<std::string::String>,
pub(crate) error_code: std::option::Option<std::string::String>,
}
impl Builder {
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_arn = Some(input.into());
self
}
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource_arn = input;
self
}
pub fn error_message(mut self, input: impl Into<std::string::String>) -> Self {
self.error_message = Some(input.into());
self
}
pub fn set_error_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.error_message = input;
self
}
pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
pub fn build(self) -> crate::model::FailedResource {
crate::model::FailedResource {
resource_arn: self.resource_arn,
error_message: self.error_message,
error_code: self.error_code,
}
}
}
}
impl FailedResource {
pub fn builder() -> crate::model::failed_resource::Builder {
crate::model::failed_resource::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct QueryError {
pub error_code: std::option::Option<crate::model::QueryErrorCode>,
pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for QueryError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("QueryError");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
pub mod query_error {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<crate::model::QueryErrorCode>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error_code(mut self, input: crate::model::QueryErrorCode) -> Self {
self.error_code = Some(input);
self
}
pub fn set_error_code(
mut self,
input: std::option::Option<crate::model::QueryErrorCode>,
) -> Self {
self.error_code = input;
self
}
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::model::QueryError {
crate::model::QueryError {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl QueryError {
pub fn builder() -> crate::model::query_error::Builder {
crate::model::query_error::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum QueryErrorCode {
#[allow(missing_docs)] CloudformationStackInactive,
#[allow(missing_docs)] CloudformationStackNotExisting,
Unknown(String),
}
impl std::convert::From<&str> for QueryErrorCode {
fn from(s: &str) -> Self {
match s {
"CLOUDFORMATION_STACK_INACTIVE" => QueryErrorCode::CloudformationStackInactive,
"CLOUDFORMATION_STACK_NOT_EXISTING" => QueryErrorCode::CloudformationStackNotExisting,
other => QueryErrorCode::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for QueryErrorCode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(QueryErrorCode::from(s))
}
}
impl QueryErrorCode {
pub fn as_str(&self) -> &str {
match self {
QueryErrorCode::CloudformationStackInactive => "CLOUDFORMATION_STACK_INACTIVE",
QueryErrorCode::CloudformationStackNotExisting => "CLOUDFORMATION_STACK_NOT_EXISTING",
QueryErrorCode::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"CLOUDFORMATION_STACK_INACTIVE",
"CLOUDFORMATION_STACK_NOT_EXISTING",
]
}
}
impl AsRef<str> for QueryErrorCode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceIdentifier {
pub resource_arn: std::option::Option<std::string::String>,
pub resource_type: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceIdentifier {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceIdentifier");
formatter.field("resource_arn", &self.resource_arn);
formatter.field("resource_type", &self.resource_type);
formatter.finish()
}
}
pub mod resource_identifier {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) resource_arn: std::option::Option<std::string::String>,
pub(crate) resource_type: std::option::Option<std::string::String>,
}
impl Builder {
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_arn = Some(input.into());
self
}
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource_arn = input;
self
}
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn build(self) -> crate::model::ResourceIdentifier {
crate::model::ResourceIdentifier {
resource_arn: self.resource_arn,
resource_type: self.resource_type,
}
}
}
}
impl ResourceIdentifier {
pub fn builder() -> crate::model::resource_identifier::Builder {
crate::model::resource_identifier::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GroupConfigurationItem {
pub r#type: std::option::Option<std::string::String>,
pub parameters: std::option::Option<std::vec::Vec<crate::model::GroupConfigurationParameter>>,
}
impl std::fmt::Debug for GroupConfigurationItem {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GroupConfigurationItem");
formatter.field("r#type", &self.r#type);
formatter.field("parameters", &self.parameters);
formatter.finish()
}
}
pub mod group_configuration_item {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) r#type: std::option::Option<std::string::String>,
pub(crate) parameters:
std::option::Option<std::vec::Vec<crate::model::GroupConfigurationParameter>>,
}
impl Builder {
pub fn r#type(mut self, input: impl Into<std::string::String>) -> Self {
self.r#type = Some(input.into());
self
}
pub fn set_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.r#type = input;
self
}
pub fn parameters(
mut self,
input: impl Into<crate::model::GroupConfigurationParameter>,
) -> Self {
let mut v = self.parameters.unwrap_or_default();
v.push(input.into());
self.parameters = Some(v);
self
}
pub fn set_parameters(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::GroupConfigurationParameter>>,
) -> Self {
self.parameters = input;
self
}
pub fn build(self) -> crate::model::GroupConfigurationItem {
crate::model::GroupConfigurationItem {
r#type: self.r#type,
parameters: self.parameters,
}
}
}
}
impl GroupConfigurationItem {
pub fn builder() -> crate::model::group_configuration_item::Builder {
crate::model::group_configuration_item::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GroupConfigurationParameter {
pub name: std::option::Option<std::string::String>,
pub values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for GroupConfigurationParameter {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GroupConfigurationParameter");
formatter.field("name", &self.name);
formatter.field("values", &self.values);
formatter.finish()
}
}
pub mod group_configuration_parameter {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.values.unwrap_or_default();
v.push(input.into());
self.values = Some(v);
self
}
pub fn set_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.values = input;
self
}
pub fn build(self) -> crate::model::GroupConfigurationParameter {
crate::model::GroupConfigurationParameter {
name: self.name,
values: self.values,
}
}
}
}
impl GroupConfigurationParameter {
pub fn builder() -> crate::model::group_configuration_parameter::Builder {
crate::model::group_configuration_parameter::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GroupIdentifier {
pub group_name: std::option::Option<std::string::String>,
pub group_arn: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for GroupIdentifier {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GroupIdentifier");
formatter.field("group_name", &self.group_name);
formatter.field("group_arn", &self.group_arn);
formatter.finish()
}
}
pub mod group_identifier {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) group_name: std::option::Option<std::string::String>,
pub(crate) group_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.group_name = Some(input.into());
self
}
pub fn set_group_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.group_name = input;
self
}
pub fn group_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.group_arn = Some(input.into());
self
}
pub fn set_group_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.group_arn = input;
self
}
pub fn build(self) -> crate::model::GroupIdentifier {
crate::model::GroupIdentifier {
group_name: self.group_name,
group_arn: self.group_arn,
}
}
}
}
impl GroupIdentifier {
pub fn builder() -> crate::model::group_identifier::Builder {
crate::model::group_identifier::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GroupFilter {
pub name: std::option::Option<crate::model::GroupFilterName>,
pub values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for GroupFilter {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GroupFilter");
formatter.field("name", &self.name);
formatter.field("values", &self.values);
formatter.finish()
}
}
pub mod group_filter {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::GroupFilterName>,
pub(crate) values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn name(mut self, input: crate::model::GroupFilterName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::GroupFilterName>,
) -> Self {
self.name = input;
self
}
pub fn values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.values.unwrap_or_default();
v.push(input.into());
self.values = Some(v);
self
}
pub fn set_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.values = input;
self
}
pub fn build(self) -> crate::model::GroupFilter {
crate::model::GroupFilter {
name: self.name,
values: self.values,
}
}
}
}
impl GroupFilter {
pub fn builder() -> crate::model::group_filter::Builder {
crate::model::group_filter::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum GroupFilterName {
#[allow(missing_docs)] ConfigurationType,
#[allow(missing_docs)] ResourceType,
Unknown(String),
}
impl std::convert::From<&str> for GroupFilterName {
fn from(s: &str) -> Self {
match s {
"configuration-type" => GroupFilterName::ConfigurationType,
"resource-type" => GroupFilterName::ResourceType,
other => GroupFilterName::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for GroupFilterName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(GroupFilterName::from(s))
}
}
impl GroupFilterName {
pub fn as_str(&self) -> &str {
match self {
GroupFilterName::ConfigurationType => "configuration-type",
GroupFilterName::ResourceType => "resource-type",
GroupFilterName::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["configuration-type", "resource-type"]
}
}
impl AsRef<str> for GroupFilterName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListGroupResourcesItem {
pub identifier: std::option::Option<crate::model::ResourceIdentifier>,
pub status: std::option::Option<crate::model::ResourceStatus>,
}
impl std::fmt::Debug for ListGroupResourcesItem {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListGroupResourcesItem");
formatter.field("identifier", &self.identifier);
formatter.field("status", &self.status);
formatter.finish()
}
}
pub mod list_group_resources_item {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) identifier: std::option::Option<crate::model::ResourceIdentifier>,
pub(crate) status: std::option::Option<crate::model::ResourceStatus>,
}
impl Builder {
pub fn identifier(mut self, input: crate::model::ResourceIdentifier) -> Self {
self.identifier = Some(input);
self
}
pub fn set_identifier(
mut self,
input: std::option::Option<crate::model::ResourceIdentifier>,
) -> Self {
self.identifier = input;
self
}
pub fn status(mut self, input: crate::model::ResourceStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ResourceStatus>,
) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::model::ListGroupResourcesItem {
crate::model::ListGroupResourcesItem {
identifier: self.identifier,
status: self.status,
}
}
}
}
impl ListGroupResourcesItem {
pub fn builder() -> crate::model::list_group_resources_item::Builder {
crate::model::list_group_resources_item::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceStatus {
pub name: std::option::Option<crate::model::ResourceStatusValue>,
}
impl std::fmt::Debug for ResourceStatus {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceStatus");
formatter.field("name", &self.name);
formatter.finish()
}
}
pub mod resource_status {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::ResourceStatusValue>,
}
impl Builder {
pub fn name(mut self, input: crate::model::ResourceStatusValue) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::ResourceStatusValue>,
) -> Self {
self.name = input;
self
}
pub fn build(self) -> crate::model::ResourceStatus {
crate::model::ResourceStatus { name: self.name }
}
}
}
impl ResourceStatus {
pub fn builder() -> crate::model::resource_status::Builder {
crate::model::resource_status::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ResourceStatusValue {
#[allow(missing_docs)] Pending,
Unknown(String),
}
impl std::convert::From<&str> for ResourceStatusValue {
fn from(s: &str) -> Self {
match s {
"PENDING" => ResourceStatusValue::Pending,
other => ResourceStatusValue::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ResourceStatusValue {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ResourceStatusValue::from(s))
}
}
impl ResourceStatusValue {
pub fn as_str(&self) -> &str {
match self {
ResourceStatusValue::Pending => "PENDING",
ResourceStatusValue::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["PENDING"]
}
}
impl AsRef<str> for ResourceStatusValue {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceFilter {
pub name: std::option::Option<crate::model::ResourceFilterName>,
pub values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for ResourceFilter {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceFilter");
formatter.field("name", &self.name);
formatter.field("values", &self.values);
formatter.finish()
}
}
pub mod resource_filter {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::ResourceFilterName>,
pub(crate) values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn name(mut self, input: crate::model::ResourceFilterName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::ResourceFilterName>,
) -> Self {
self.name = input;
self
}
pub fn values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.values.unwrap_or_default();
v.push(input.into());
self.values = Some(v);
self
}
pub fn set_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.values = input;
self
}
pub fn build(self) -> crate::model::ResourceFilter {
crate::model::ResourceFilter {
name: self.name,
values: self.values,
}
}
}
}
impl ResourceFilter {
pub fn builder() -> crate::model::resource_filter::Builder {
crate::model::resource_filter::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ResourceFilterName {
#[allow(missing_docs)] ResourceType,
Unknown(String),
}
impl std::convert::From<&str> for ResourceFilterName {
fn from(s: &str) -> Self {
match s {
"resource-type" => ResourceFilterName::ResourceType,
other => ResourceFilterName::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ResourceFilterName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ResourceFilterName::from(s))
}
}
impl ResourceFilterName {
pub fn as_str(&self) -> &str {
match self {
ResourceFilterName::ResourceType => "resource-type",
ResourceFilterName::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["resource-type"]
}
}
impl AsRef<str> for ResourceFilterName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GroupConfiguration {
pub configuration: std::option::Option<std::vec::Vec<crate::model::GroupConfigurationItem>>,
pub proposed_configuration:
std::option::Option<std::vec::Vec<crate::model::GroupConfigurationItem>>,
pub status: std::option::Option<crate::model::GroupConfigurationStatus>,
pub failure_reason: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for GroupConfiguration {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GroupConfiguration");
formatter.field("configuration", &self.configuration);
formatter.field("proposed_configuration", &self.proposed_configuration);
formatter.field("status", &self.status);
formatter.field("failure_reason", &self.failure_reason);
formatter.finish()
}
}
pub mod group_configuration {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) configuration:
std::option::Option<std::vec::Vec<crate::model::GroupConfigurationItem>>,
pub(crate) proposed_configuration:
std::option::Option<std::vec::Vec<crate::model::GroupConfigurationItem>>,
pub(crate) status: std::option::Option<crate::model::GroupConfigurationStatus>,
pub(crate) failure_reason: std::option::Option<std::string::String>,
}
impl Builder {
pub fn configuration(
mut self,
input: impl Into<crate::model::GroupConfigurationItem>,
) -> Self {
let mut v = self.configuration.unwrap_or_default();
v.push(input.into());
self.configuration = Some(v);
self
}
pub fn set_configuration(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::GroupConfigurationItem>>,
) -> Self {
self.configuration = input;
self
}
pub fn proposed_configuration(
mut self,
input: impl Into<crate::model::GroupConfigurationItem>,
) -> Self {
let mut v = self.proposed_configuration.unwrap_or_default();
v.push(input.into());
self.proposed_configuration = Some(v);
self
}
pub fn set_proposed_configuration(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::GroupConfigurationItem>>,
) -> Self {
self.proposed_configuration = input;
self
}
pub fn status(mut self, input: crate::model::GroupConfigurationStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::GroupConfigurationStatus>,
) -> Self {
self.status = input;
self
}
pub fn failure_reason(mut self, input: impl Into<std::string::String>) -> Self {
self.failure_reason = Some(input.into());
self
}
pub fn set_failure_reason(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.failure_reason = input;
self
}
pub fn build(self) -> crate::model::GroupConfiguration {
crate::model::GroupConfiguration {
configuration: self.configuration,
proposed_configuration: self.proposed_configuration,
status: self.status,
failure_reason: self.failure_reason,
}
}
}
}
impl GroupConfiguration {
pub fn builder() -> crate::model::group_configuration::Builder {
crate::model::group_configuration::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum GroupConfigurationStatus {
#[allow(missing_docs)] UpdateComplete,
#[allow(missing_docs)] UpdateFailed,
#[allow(missing_docs)] Updating,
Unknown(String),
}
impl std::convert::From<&str> for GroupConfigurationStatus {
fn from(s: &str) -> Self {
match s {
"UPDATE_COMPLETE" => GroupConfigurationStatus::UpdateComplete,
"UPDATE_FAILED" => GroupConfigurationStatus::UpdateFailed,
"UPDATING" => GroupConfigurationStatus::Updating,
other => GroupConfigurationStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for GroupConfigurationStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(GroupConfigurationStatus::from(s))
}
}
impl GroupConfigurationStatus {
pub fn as_str(&self) -> &str {
match self {
GroupConfigurationStatus::UpdateComplete => "UPDATE_COMPLETE",
GroupConfigurationStatus::UpdateFailed => "UPDATE_FAILED",
GroupConfigurationStatus::Updating => "UPDATING",
GroupConfigurationStatus::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["UPDATE_COMPLETE", "UPDATE_FAILED", "UPDATING"]
}
}
impl AsRef<str> for GroupConfigurationStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}