-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_application_anti_affinity_data.go
137 lines (112 loc) · 4.65 KB
/
model_application_anti_affinity_data.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/*
Horizon Server API
Welcome to the Horizon Server API Reference documentation. This API reference provides comprehensive information about status of all Horizon Server components and resources. <br> Choose Latest spec from dropdown to view API reference on latest version available.
API version: 2111
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package gohorizon
import (
"encoding/json"
)
// ApplicationAntiAffinityData Anti-affinity data required to create an application pool.
type ApplicationAntiAffinityData struct {
// Maximum number of other applications that can be running on the RDS Server before the RDS Server is rejected for new application sessions.
AntiAffinityCount int32 `json:"anti_affinity_count"`
// Set of pattern strings to match against process names on a RDS Server when attempting to launch a session for this Application. For each application running on an RDSServer that matches one of the patterns, the tally against the count threshold is incremented.<br>Pattern strings may contain wildcard characters. '*' matches zero or more characters. '?' matches exactly one character.
AntiAffinityPatterns []string `json:"anti_affinity_patterns"`
}
// NewApplicationAntiAffinityData instantiates a new ApplicationAntiAffinityData object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewApplicationAntiAffinityData(antiAffinityCount int32, antiAffinityPatterns []string) *ApplicationAntiAffinityData {
this := ApplicationAntiAffinityData{}
this.AntiAffinityCount = antiAffinityCount
this.AntiAffinityPatterns = antiAffinityPatterns
return &this
}
// NewApplicationAntiAffinityDataWithDefaults instantiates a new ApplicationAntiAffinityData object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewApplicationAntiAffinityDataWithDefaults() *ApplicationAntiAffinityData {
this := ApplicationAntiAffinityData{}
return &this
}
// GetAntiAffinityCount returns the AntiAffinityCount field value
func (o *ApplicationAntiAffinityData) GetAntiAffinityCount() int32 {
if o == nil {
var ret int32
return ret
}
return o.AntiAffinityCount
}
// GetAntiAffinityCountOk returns a tuple with the AntiAffinityCount field value
// and a boolean to check if the value has been set.
func (o *ApplicationAntiAffinityData) GetAntiAffinityCountOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.AntiAffinityCount, true
}
// SetAntiAffinityCount sets field value
func (o *ApplicationAntiAffinityData) SetAntiAffinityCount(v int32) {
o.AntiAffinityCount = v
}
// GetAntiAffinityPatterns returns the AntiAffinityPatterns field value
func (o *ApplicationAntiAffinityData) GetAntiAffinityPatterns() []string {
if o == nil {
var ret []string
return ret
}
return o.AntiAffinityPatterns
}
// GetAntiAffinityPatternsOk returns a tuple with the AntiAffinityPatterns field value
// and a boolean to check if the value has been set.
func (o *ApplicationAntiAffinityData) GetAntiAffinityPatternsOk() (*[]string, bool) {
if o == nil {
return nil, false
}
return &o.AntiAffinityPatterns, true
}
// SetAntiAffinityPatterns sets field value
func (o *ApplicationAntiAffinityData) SetAntiAffinityPatterns(v []string) {
o.AntiAffinityPatterns = v
}
func (o ApplicationAntiAffinityData) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["anti_affinity_count"] = o.AntiAffinityCount
}
if true {
toSerialize["anti_affinity_patterns"] = o.AntiAffinityPatterns
}
return json.Marshal(toSerialize)
}
type NullableApplicationAntiAffinityData struct {
value *ApplicationAntiAffinityData
isSet bool
}
func (v NullableApplicationAntiAffinityData) Get() *ApplicationAntiAffinityData {
return v.value
}
func (v *NullableApplicationAntiAffinityData) Set(val *ApplicationAntiAffinityData) {
v.value = val
v.isSet = true
}
func (v NullableApplicationAntiAffinityData) IsSet() bool {
return v.isSet
}
func (v *NullableApplicationAntiAffinityData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableApplicationAntiAffinityData(val *ApplicationAntiAffinityData) *NullableApplicationAntiAffinityData {
return &NullableApplicationAntiAffinityData{value: val, isSet: true}
}
func (v NullableApplicationAntiAffinityData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableApplicationAntiAffinityData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}